Gridview rowediting vs rowupdating

Now you can ask questions directly to me on my new site ASPForums.

gridview rowediting vs rowupdating-65gridview rowediting vs rowupdating-68

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.

The edit link would put the gridview in edit mode, cancel would work but the Row Updating event just did not fire.

I searched the forums and found mainly unanswered questions.

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.

before that i want just using Find control and casting and then retrieving all lot code. If values are same they could notify user to change the value(give new cell value).

Every one can use it to compare the new value with old ones.

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=",

Tags: , ,