Gridview rowediting vs rowupdating

by  |  25-Jul-2016 10:32

Thanks Bob The code The Row Command event is raised when any button is clicked in the Grid View control.

The Row Editing event is raised when the command name is "Edit" . 'Row Editting' happens before the grid is put into edit mode and 'Row Deleting' happens before the row is actually deleted.

gridview rowediting vs rowupdating-75

w=800" src=" w=800&h=359" alt="Debugger Inside Grid View Row Updating Event" width="800" height="359" class="size-full wp-image-328" srcset=" w=230" src=" w=800" alt="Grid View on Browser" class="size-full wp-image-335" srcset=", w=416" src=" w=800" alt="Grid View Cell Showing Updated Value" class="size-full wp-image-331" srcset=",

If we move our mouse on to the variables, which hold the cell values, we can see the old value instead of new updated value (Refer the debugging Screen Shot at the Top).

event is raised when the Cancel button of a row in edit mode is clicked, but before the row exits edit mode.

This enables you to provide an event-handling method that performs a custom routine, such as stopping the cancel operation if it would put the row in an undesired state, whenever this event occurs.

These events are used to do things before the actual editting/deleting, etc.

Community Discussion