DataGrid.ItemCommand Event
.NET Framework 3.0
Occurs when any button is clicked in the DataGrid control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
public: event DataGridCommandEventHandler^ ItemCommand { void add (DataGridCommandEventHandler^ value); void remove (DataGridCommandEventHandler^ value); }
/** @event */ public void add_ItemCommand (DataGridCommandEventHandler value) /** @event */ public void remove_ItemCommand (DataGridCommandEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
The ItemCommand event is raised when any button is clicked in the DataGrid control. This event is commonly used to handle buttons controls with a custom CommandName value, such as Add, in the DataGrid control.
For more information about handling events, see Consuming Events.
Community Additions
ADD
Show: