Skip to main content

GridView.GroupRowExpanded Event

Fires immediately after a group row has been expanded.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[DXCategory("Behavior")]
public event RowEventHandler GroupRowExpanded

Event Data

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

Property Description
RowHandle Gets the row’s handle (position). For the ColumnView.RowUpdated event, this property specifies the previous handle (position) of the currently processed row. NewItemRowHandle value when a new row is added.

Remarks

This event is raised immediately after a group row has been expanded either by an end-user or via code. The group row is identified by the RowHandle parameter. Note that this event serves as a notification only and the action cannot be cancelled. To control whether individual group rows can be expanded, handle the GridView.GroupRowExpanding event instead.

Group rows can be expanded recursively via the GridView.SetRowExpanded method overload with the recursive parameter set to true. In this case, the GroupRowExpanded event is raised only once (for the row which is passed as this method’s parameter). For nesting rows, this event is not raised.

The GroupRowExpanded event is also called after all group rows have been expanded at the same time (via a group panel context menu or GridView.ExpandAllGroups method). In this case, the RowEventArgs.RowHandle parameter is set to GridControl.InvalidRowHandle.

Please refer to the Working with Groups in Code topic for additional information.

See Also