GridControl.GroupRowExpanding Event
Occurs when a group row is about to be expanded, allowing cancellation of the action.
Namespace: DevExpress.UI.Xaml.Grid
Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll
NuGet Package: DevExpress.Uwp.Controls
Declaration
Event Data
The GroupRowExpanding event's data class is DevExpress.UI.Xaml.Grid.RowAllowEventArgs.
Remarks
The GroupRowExpanding event is raised before a group row is expanded 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 expanded, set the event parameter’s Allow parameter to false.
The GridControl.ExpandAllGroups method allows you to expand all group rows. In this instance, the GroupRowExpanding event is raised only once. The event parameter’s RowHandle property returns an invalid row handle (DataControlBase.InvalidRowHandle).
After the group row has been expanded, the GridControl.GroupRowExpanded event is raised.