See Part 2 for steps on how to customize the controls when switching to Edit mode, including disabling the ID field.
Most of this code was gleaned & modified from Microsoft’s documentation on the Grid View Row Editing event.
On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference. Everything should be sorted out when the “Update” link is pressed. Finally, to pull your hidden value that you’ve dubbed a Data Key in the Grid View’s subroutine.In my custom grid View control I cannot raise the Row Updated event.I have tried to add an event handler to the Row Updated event of my custom control but it is not called.
Thus, in order to switch it into Edit Mode, in each of your event handles (Row Editing, Row Updating, and Row Canceling Edit) you must do two things: Protected Sub Grid View1_Row Editing(By Val sender As System.