The CollapseAll method collapses all columns and rows which are currently expanded. If only the rows or the columns need to be collapsed, call the CollapseAllRows or CollapseAllColumns method, respectively.
To collapse a particular field value, use the field's DevExpress.XtraPivotGrid.PivotGridFieldBase.CollapseValue method. To collapse all the values of a particular field, use its DevExpress.XtraPivotGrid.PivotGridFieldBase.CollapseAll method.
To collapse or expand all columns and rows asynchronously, use the CollapseAllAsync and ExpandAllAsync methods, respectively.