Everything should be sorted out when the “Update” link is pressed.
Basically, I was trying to convert an existing data-display-only Grid View (ie, no special functions) into one where I can update a field, namely the inventory for displayed products. New Edit Index 'set to selected row Bind Grid View() ' your own subroutine that you use to bind your datagrid End Sub Protected Sub Grid View1_Row Canceling Edit(By Val sender As System.
Hope this saves someone a full day of research (and possibly some hair)!
To enhance this process, be sure to include your Grid View in an AJAX Update Panel.
So when we use these special key words as the Command Name for the buttons in the Grid View, they automatically invoke the built in functionality of the Grid View when we click on the button.
As our code does not handle those events hence they throw an exception.
“Delete” – Raises the Row Deleting and Row Deleted events. “Page” – Raises the Page Index Changing and Page Index Changed events.