Skip to main content

DXCollectionView.CollapseAllGroups(Boolean) Method

Collapses all groups of items.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

Declaration

public void CollapseAllGroups(
    bool raiseEvents = true
)

Optional Parameters

Name Type Default Description
raiseEvents Boolean True

true to raise the GroupCollapsed event; otherwise, false.

Remarks

When you call the CollapseAllGroups method, the GroupCollapsing and GroupCollapsed events are raised for each group.

To collapse an individual group of items, use the CollapseGroup method.

To expand groups of items, use the ExpandAllGroups or ExpandGroup method.

See Also