Fires when a control contained within a templated data item raises the Command event.
public event DataViewItemCommandEventHandler ItemCommand
Public Event ItemCommand As DataViewItemCommandEventHandler
The ItemCommand event's data class is DataViewItemCommandEventArgs. The following properties provide information specific to this event:
|CommandArgument||Gets the argument for the command. Inherited from CommandEventArgs.|
|CommandName||Gets the name of the command. Inherited from CommandEventArgs.|
|CommandSource||Gets an object representing the control which forced a postback.|
|Item||Gets an item object related to the event.|
An ASPxDataView control allows the contents of its items to be customized through defining templates. A template of a data item can be specified using the ASPxDataView.ItemTemplate property. A template is a set of HTML elements and controls which constitute a layout for a particular data item.
The ItemCommand event is raised when the control contained within a templated data item raises the Command event. The processed item is identified by the DataViewItemCommandEventArgs.Item property.