Skip to main content

WebDataDetailRows.CollapseAllRows() Method

Collapses all expanded master rows that are displayed within the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public void CollapseAllRows()

Remarks

If the ASPxGridViewDetailSettings.AllowOnlyOneMasterRowExpanded option is set to false, multiple master rows can be expanded simultaneously. To collapse all expanded master rows, use the CollapseAllRows method or the ASPxClientGridView.CollapseAllDetailRows client-side method.

To collapse a single master row, use the WebDataDetailRows.CollapseRow method.

To learn more, see Expanding and Collapsing Detail Rows.

See Also