Skip to main content

GridControl.GroupRowCollapsing Event

Occurs when a group row is about to be collapsed, allowing cancellation of the action.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public event RowAllowEventHandler GroupRowCollapsing

Event Data

The GroupRowCollapsing event's data class is DevExpress.UI.Xaml.Grid.RowAllowEventArgs.

Remarks

The GroupRowCollapsing event is raised before a group row is collapsed by an end-user or in code, allowing you to cancel this action. The group row is identified by its handle via the RowHandle property. To prevent the group row from being collapsed, set the event parameter’s Allow parameter to false.

The GridControl.CollapseAllGroups method allows you to collapse all group rows. In this instance, the GroupRowCollapsing event is raised only once. The event parameter’s RowHandle property returns an invalid row handle (DataControlBase.InvalidRowHandle).

After the group row has been collapsed, the GridControl.GroupRowCollapsed event is raised.

See Also