Within the Item Template I have an Image Buttong with a Command Name of "Edit".
This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.
I have tried to override On Row Updated in my custom control, but the breakpoint never gets hit.
I have tried to not override in control and instead use delegates like I described in ...
This happens everytime i try to click on Edit/Delete on the Gridview.
event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.
A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.
You could expose security holes or corrupt your own data using general exception handling like this.
After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it.
One has it's Command Name = "Update" and the other "Cancel".
This enables you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.
A Grid View Edit Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the edit operation should be canceled.