mchoudhury
Programmer
Hi Guys,
I have this DataGrid, I'm trying to edit columns within the grid. At present the way its being edited are all the fields and value from the DB get retrived on another page, and that page i have textboxes, after any amendments within the textboxes its updates the DB.
<asp
ataGrid ID="UsageTimes" Runat="server" datasource='<%# DataProvider.getTelephoneUsageTimesList %>' autogeneratecolumns="false" cellpadding="2" gridlines="None">
<Columns>
<asp:BoundColumn datafield="TelephoneUsageTimeName" headertext="Usage Time">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="300px"></itemstyle>
</asp:boundcolumn>
<asp:BoundColumn datafield="DaytimePerc" headertext="DayPerc">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="200px"></itemstyle>
</asp:boundcolumn>
<asp:BoundColumn datafield="EveningPerc" headertext="EvenPerc">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="200px"></itemstyle>
</asp:boundcolumn>
<asp:BoundColumn datafield="WeekendPerc" headertext="WeekendPerc">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="200px"></itemstyle>
</asp:boundcolumn>
<asp:hyperlinkcolumn text="Edit" datanavigateurlfield="TelephoneUsageTimeID" datanavigateurlformatstring="hp_Edit_TelephoneCallPlan.aspx?tcpid={0}"></asp:hyperlinkcolumn>
what i want is when the edit link is pressed all the fileds within that column to turn to textboxes, and also an update link is dispalyed, so within the datagrid table users are able to update the fileds. Dont worry about update function for now.
The important thing is turning the fileds of column into textboxes for amendments.
Hopes someone could help
Thanks
Mac
I have this DataGrid, I'm trying to edit columns within the grid. At present the way its being edited are all the fields and value from the DB get retrived on another page, and that page i have textboxes, after any amendments within the textboxes its updates the DB.
<asp
<Columns>
<asp:BoundColumn datafield="TelephoneUsageTimeName" headertext="Usage Time">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="300px"></itemstyle>
</asp:boundcolumn>
<asp:BoundColumn datafield="DaytimePerc" headertext="DayPerc">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="200px"></itemstyle>
</asp:boundcolumn>
<asp:BoundColumn datafield="EveningPerc" headertext="EvenPerc">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="200px"></itemstyle>
</asp:boundcolumn>
<asp:BoundColumn datafield="WeekendPerc" headertext="WeekendPerc">
<headerstyle font-bold="True"></headerstyle>
<itemstyle width="200px"></itemstyle>
</asp:boundcolumn>
<asp:hyperlinkcolumn text="Edit" datanavigateurlfield="TelephoneUsageTimeID" datanavigateurlformatstring="hp_Edit_TelephoneCallPlan.aspx?tcpid={0}"></asp:hyperlinkcolumn>
what i want is when the edit link is pressed all the fileds within that column to turn to textboxes, and also an update link is dispalyed, so within the datagrid table users are able to update the fileds. Dont worry about update function for now.
The important thing is turning the fileds of column into textboxes for amendments.
Hopes someone could help
Thanks
Mac