Back to Devexpress

PivotGridControl.CollapseAllRows() Method

windowsforms-devexpress-dot-xtrapivotgrid-dot-pivotgridcontrol-f2f61939.md

latest3.0 KB
Original Source

PivotGridControl.CollapseAllRows() Method

Collapses all rows.

Namespace : DevExpress.XtraPivotGrid

Assembly : DevExpress.XtraPivotGrid.v25.2.dll

NuGet Package : DevExpress.Win.PivotGrid

Declaration

csharp
public void CollapseAllRows()
vb
Public Sub CollapseAllRows

Remarks

This method collapses all rows that correspond to Row Fields. To collapse all rows that correspond to a specific Row Field, use the PivotGridFieldBase.CollapseAll method. The PivotGridFieldBase.CollapseValue method allows you to collapse individual rows.

To collapse all rows asynchronously, use the PivotGridControl.CollapseAllRowsAsync method.

To expand all rows, use the PivotGridControl.ExpandAllRowsAsync (asynchronous) or PivotGridControl.ExpandAllRows (synchronous) method.

To expand or collapse all columns asynchronously, use the PivotGridControl.ExpandAllColumnsAsync and PivotGridControl.CollapseAllColumnsAsync methods, respectively (or the PivotGridControl.ExpandAllColumns and PivotGridControl.CollapseAllColumns methods to do this synchronously).

See Also

PivotGridControl.CollapseAll

CollapseAllColumns()

ExpandAllRows()

PivotGridFieldBase.CollapseAll

CollapseValue(Object)

PivotGridControl Class

PivotGridControl Members

DevExpress.XtraPivotGrid Namespace