Skip to main content
A newer version of this page is available. .

GridView.SetGroupLevelExpanded(Int32, Boolean, Boolean) Method

Expands or collapses group rows at the specified group level. Allows you to expand/collapse child group rows.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

public void SetGroupLevelExpanded(
    int groupLevel,
    bool expanded,
    bool recursive
)

Parameters

Name Type Description
groupLevel Int32

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

expanded Boolean

true to expand group rows; false to collapse group rows.

recursive Boolean

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

Remarks

The SetGroupLevelExpanded method expands/collapses group rows corresponding to the specified group level, without affecting the expansion states of rows at other group levels.

The SetGroupLevelExpanded method is not in effect in Server Mode.

See Also