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

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.v24.2.dll

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

#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