System.Web.UI.WebControls.GridView.RowUpdated Event

Occurs when a row's Update button is clicked, but after the System.Web.UI.WebControls.GridView control updates the row.

Syntax

public event GridViewUpdatedEventHandler RowUpdated

Remarks

The GridView.RowUpdated event is raised when a row's Update button is clicked, but after the System.Web.UI.WebControls.GridView control updates the row. 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 System.Web.UI.WebControls.GridViewUpdatedEventArgs 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 also indicate whether the exception was handled in the event-handling method by setting the GridViewUpdatedEventArgs.ExceptionHandled property of the System.Web.UI.WebControls.GridViewUpdatedEventArgs object.

For more information about handling events, see Consuming Events.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0