Back to Devexpress

PivotGridControl.CollapseValue(Boolean, Object[]) Method

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-dot-collapsevalue-x28-system-dot-boolean-system-dot-object-x29.md

latest2.7 KB
Original Source

PivotGridControl.CollapseValue(Boolean, Object[]) Method

Collapses the specified column or row.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public void CollapseValue(
    bool isColumn,
    params object[] values
)
vb
Public Sub CollapseValue(
    isColumn As Boolean,
    ParamArray values As Object()
)

Parameters

NameTypeDescription
isColumnBoolean

true to collapse a column; false to collapse a row.

| | values | Object[] |

An array of field values that identify the column/row to be collapsed.

|

Remarks

Consider the following PivotGridControl:

To collapse ‘1995’ within “Aniseed Syrup”, do the following:

csharp
pivotGrid.CollapseValue(true, "Aniseed Syrup", 1995);

The image below shows the result:

To collapse a column or row asynchronously, use the PivotGridControl.CollapseValueAsync method.

To expand a column or row, use the PivotGridControl.ExpandValueAsync (asynchronous) or PivotGridControl.ExpandValue (synchronous) method.

See Also

CollapseValueAsync

ExpandValue(Boolean, Object[])

ExpandValueAsync

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace