DXCollectionView.GroupCollapsing Event
Occurs before a group of items is collapsed.
Namespace: DevExpress.Maui.CollectionView
Assembly: DevExpress.Maui.CollectionView.dll
NuGet Package: DevExpress.Maui.CollectionView
#Declaration
public event EventHandler<CancelItemEventArgs> GroupCollapsing
#Event Data
The GroupCollapsing event's data class is CancelItemEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Cancel |
Gets or sets a value indicating whether the event should be canceled.
Inherited from Cancel |
Item |
Returns the handle of the processed item. |
#Remarks
The GroupCollapsing event is raised before a group of data items is collapsed from UI or code (CollapseGroup). You can handle this event and set its parameter’s Cancel inherited property to true
to prevent a group from being collapsed.
When you call the CollapseAllGroups method, the GroupCollapsing event is raised for each group.
After a group has been collapsed, the GroupCollapsed event is raised.