hi all
please send me the code to update the data in the database through the grid view whithout using any controls like sql datasource
thanks
nagarjunareddy
User Profile
Collapse
-
updating a row in the database through grid view
-
yes i found the solution to this problem,just we have to click on the properties icon set the property RowEditing to GridView1_RowEd iting and then we have to write the above code...Last edited by Frinavale; Aug 10 '10, 02:19 PM. -
hi ,thank you very much for ur reply
i added the event in the code behind file like the following
Code:void GridView1_RowEditing(object sender, GridViewEditEventArgs e) { GridView1.EditIndex = e.NewEditIndex; binddata(); }
Last edited by Frinavale; Aug 10 '10, 02:18 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.Leave a comment:
-
row editing problem in gridview
hi i am trying to edit the row in grid view but that did not call the row_editing event when i click the edit button in grid view and it gives the error like
"The GridView 'GridView1' fired event RowEditing which wasn't handled."
please any one help me as early as possible to solve the problem that i am facing
No activity results to display
Show More
Leave a comment: