Back to Devexpress

ASPxDataView.ItemCommand Event

aspnet-devexpress-dot-web-dot-aspxdataview-6ee2c85d.md

latest2.6 KB
Original Source

ASPxDataView.ItemCommand Event

Fires when a control contained within a templated data item raises the Command event.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event DataViewItemCommandEventHandler ItemCommand
vb
Public Event ItemCommand As DataViewItemCommandEventHandler

Event Data

The ItemCommand event's data class is DataViewItemCommandEventArgs. The following properties provide information specific to this event:

PropertyDescription
CommandArgumentGets the argument for the command. Inherited from CommandEventArgs.
CommandNameGets the name of the command. Inherited from CommandEventArgs.
CommandSourceGets an object representing the control which forced a postback.
ItemGets 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.

See Also

DataView

ASPxDataView Class

ASPxDataView Members

DevExpress.Web Namespace