Skip to main content

GridView.CollapseGroupLevel(Int32, Boolean) Method

Collapses group rows corresponding to the specified group level. Allows you to collapse group rows recursively.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v23.2.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation


public void CollapseGroupLevel(
    int groupLevel,
    bool recursive


Name Type Description
groupLevel Int32

An integer value that is the group level of group rows to be collapsed.

recursive Boolean

true if child group rows of target group rows must be collapsed as well; otherwise, false.


The CollapseGroupLevel method does not collapse upper-level group rows.

The CollapseGroupLevel method is not in effect in Server Mode.

See Also