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

ASPxGridView.CollapseRow(Int32, Boolean) Method

Collapses the specified group row and optionally any child group rows at all nesting levels.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public void CollapseRow(
    int visibleIndex,
    bool recursive
)

Parameters

Name Type Description
visibleIndex Int32

An integer value that identifies the group row by its visible index.

recursive Boolean

true to collapse any child group rows at all nesting levels; false to preserve the expanded state of any child group rows.

Remarks

To collapse all group rows, use the ASPxGridView.CollapseAll method. To expand the specified group row, use the ASPxGridView.ExpandRow method.

To identify whether the row is expanded, use the ASPxGridView.IsRowExpanded method.

See Also