System.Web.UI.WebControls.DataGrid.ItemCommand Event

Occurs when any button is clicked in the System.Web.UI.WebControls.DataGrid control.

Syntax

public event DataGridCommandEventHandler ItemCommand

Remarks

The DataGrid.ItemCommand event is raised when any button is clicked in the System.Web.UI.WebControls.DataGrid control. This event is commonly used to handle buttons controls with a custom CommandName value, such as Add, in the System.Web.UI.WebControls.DataGrid control.

For more information about handling events, see [<topic://cpconEventsOverview>].

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0