One of the issues I’ve had is that the edit template doesn’t map to the view template very well. You see, the data that gets stored back to the database during the edit could go to two of four different tables.
The Grid View 'Grid View1' fired event Page Index Changing which wasn't handled.So how do you have the Grid View update the database under these conditions? The secret lies in the event handlers–in this case, the Row Updating event handler. Grid View Update Event Args object that is passed in. This page contains copyright material from //blog.and you have no rights to copy and paste the full text into your own blog even if you have written permission to the contrary. But there is an alternative, we can reference the above controls within Grid View edit mode in Pre Render method which is best i think. Open() Using da As New Sql Data Adapter(comm) dt = New Data Table("tbl") da. Open() Using da As New Sql Data Adapter(comm) dt = New Data Table("tbl") da. In Pre Render method we can access each edit template controls so that we can easily hide or show or enable or disable those controls.