Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DXCollectionView.GroupExpanding Event

Occurs before a group of items is expanded.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

#Declaration

C#
public event EventHandler<CancelItemEventArgs> GroupExpanding

#Event Data

The GroupExpanding 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 CancelEventArgs.
ItemHandle Returns the handle of the processed item.

#Remarks

The GroupExpanding event is raised before a group of data items is expanded from UI or code (ExpandGroup). You can handle this event and set its parameter’s Cancel inherited property to true to prevent a group from being expanded.

When you call the ExpandAllGroups method, the GroupExpanding event is raised for each group.

After the group has been expanded, the GroupExpanded event is raised.

See Also