Skip to main content

XRPivotGrid.CollapseAll() Method

Collapses all the columns and rows in the pivot grid.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

public void CollapseAll()

Remarks

The CollapseAll method collapses all columns and rows which are currently expanded. If only rows or columns need to be collapsed, call the XRPivotGrid.CollapseAllRows or XRPivotGrid.CollapseAllColumns method, respectively.

To collapse a particular field value, use the field’s PivotGridFieldBase.CollapseValue method. To collapse all the values of a particular field, use its PivotGridFieldBase.CollapseAll method.

See Also