In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.
Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: 1.
Unfortunately I didn’t think of it as affecting events too.
In my case most features worked, Edit buttons would invoke row editing mode, cancel button works fine, row Command event generally worked, but it was Row Updating that simply wasn’t working.
To do this we first need to obtain the reference of the current row by using its index no as shown in the first line below.