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.
event is raised when a row's Update button is clicked, but after the Grid View control updates the row.
You can also indicate whether the exception was handled in the event-handling method by setting the On Row Updated Row Canceling Edit On Row Canceling Edit Row Deleted On Row Deleted Row Deleting On Row Deleting Row Editing On Row Editing Row Updating On Row Updating Grid View Class System.
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
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).
Hello Debra, As I understand it, you want to implement custom row updating.
After searching long and hard I found a great article that solved my issue.Note: I'm using stored procedure to update my DB table.To manually specify columns for the gridview you have to set Auto Generate Columns="false".This enables you to provide an event-handling method that performs a custom routine, such as checking the results of the update operation, whenever this event occurs.
A Grid View Updated Event Args object is passed to the event-handling method, which enables you to determine the number of rows affected and any exceptions that might have occurred. You can find the textbox that is generated on edit event in the Row Updating event below and assign it to a string variable.