Skip to main content

DXCollectionView.CollapseGroup(Int32, Boolean) Method

Collapses the specified group of items.

Namespace: DevExpress.Maui.CollectionView

Assembly: DevExpress.Maui.CollectionView.dll

NuGet Package: DevExpress.Maui.CollectionView

Declaration

public void CollapseGroup(
    int itemHandle,
    bool raiseEvents = true
)

Parameters

Name Type Description
itemHandle Int32

The group header handle.

Optional Parameters

Name Type Default Description
raiseEvents Boolean True

true to raise the GroupCollapsed event; otherwise, false.

Remarks

When you call the CollapseGroup method, the GroupCollapsing and GroupCollapsed events are raised.

To collapse all groups of items, use the CollapseAllGroups method.

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

See Also