Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit DataGrid

Status
Not open for further replies.

mchoudhury

Programmer
Nov 26, 2004
71
GB
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:DataGrid 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


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top