Skip to main content
A newer version of this page is available. .
Tab

ASPxTitleIndex.GroupHeaderCommand Event

Fires when a control contained within a templated group header raises the Command event.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

public event GroupHeaderCommandEventHandler GroupHeaderCommand

Event Data

The GroupHeaderCommand event's data class is GroupHeaderCommandEventArgs. 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 a control which forced a postback.
GroupValue Gets the value of the group to which the processed header belongs.

Remarks

A ASPxTitleIndex control allows the contents of its group headers to be customized through defining templates. A template of a group header can be specified by the ASPxTitleIndex.GroupHeaderTemplate property. A template is a set of HTML elements and controls which constitute a layout for a particular group header.

The GroupHeaderCommand event is fired when any control contained within a templated group header raises the Command event. The GroupHeaderCommand event is commonly used when a specific command name is associated with a button control. This allows you to create multiple button controls within different templated group headers and programmatically determine which button control is clicked.

Write an GroupHeaderCommand event handler to perform specific actions each time the Command event is raised by any control contained within any templated group header. The GroupHeaderCommand event provides a parameter of the GroupHeaderCommandEventArgs type.

See Also