ASPxDataView.ItemCommand Event
Fires when a control contained within a templated data item raises the Command event.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
Declaration
Event Data
The ItemCommand event's data class is DataViewItemCommandEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
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. |
Remarks
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.