System.Web.UI.WebControls.DataGridCommandEventArgs Class

Provides data for the DataGrid.CancelCommand, DataGrid.DeleteCommand, DataGrid.EditCommand, DataGrid.ItemCommand, and DataGrid.UpdateCommand events of the System.Web.UI.WebControls.DataGrid control. This class cannot be inherited.

See Also: DataGridCommandEventArgs Members

Syntax

public class DataGridCommandEventArgs : CommandEventArgs

Remarks

The DataGrid.CancelCommand event is raised when the Cancel button for an item in the System.Web.UI.WebControls.DataGrid control is clicked.

The DataGrid.DeleteCommand event is raised when the Delete button for an item in the System.Web.UI.WebControls.DataGrid control is clicked.

The DataGrid.EditCommand event is raised when the Edit button for an item in the System.Web.UI.WebControls.DataGrid control is clicked.

The DataGrid.ItemCommand event is raised when any button for an item in the System.Web.UI.WebControls.DataGrid control is clicked. This allows you to programmatically test for when a specific command button is clicked and take appropriate action. This event is commonly used to handle custom command buttons for the System.Web.UI.WebControls.DataGrid control.

The DataGrid.UpdateCommand event is raised when the Update button for an item in the System.Web.UI.WebControls.DataGrid control is clicked.

For a list of initial property values for an instance of System.Web.UI.WebControls.DataGridCommandEventArgs, see the DataGridCommandEventArgs.#ctor(DataGridItem, object, CommandEventArgs) constructor.

For more information about handling events, see Events and Delegates.

Requirements

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