GridView.RowEditing Event
.NET Framework 3.0
Occurs when a row's Edit button is clicked, but before the GridView control enters edit mode.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event GridViewEditEventHandler^ RowEditing { void add (GridViewEditEventHandler^ value); void remove (GridViewEditEventHandler^ value); }
/** @event */ public void add_RowEditing (GridViewEditEventHandler value) /** @event */ public void remove_RowEditing (GridViewEditEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
The RowEditing event is raised when a row's Edit button is clicked, but before the GridView control enters edit mode. This allows you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.
A GridViewEditEventArgs object is passed to the event-handling method, which allows you to determine the index of the current row and to indicate that the edit operation should be canceled. To cancel the edit operation, set the Cancel property of the GridViewEditEventArgs object to true.
For more information about handling events, see Consuming Events.
Community Additions
ADD
Show: