Back to Devexpress

PivotGridControl.ExpandValue(Boolean, Object[]) Method

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

latest2.7 KB
Original Source

PivotGridControl.ExpandValue(Boolean, Object[]) Method

Expands 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 ExpandValue(
    bool isColumn,
    params object[] values
)
vb
Public Sub ExpandValue(
    isColumn As Boolean,
    ParamArray values As Object()
)

Parameters

NameTypeDescription
isColumnBoolean

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

| | values | Object[] |

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

|

Remarks

Consider the following PivotGridControl:

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

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

The image below shows the result:

To expand a column or row asynchronously, use the PivotGridControl.ExpandValueAsync method.

To collapse a column or row, use the PivotGridControl.CollapseValueAsync (asynchronous) or PivotGridControl.CollapseValue (synchronous) method.

See Also

ExpandValueAsync

CollapseValue(Boolean, Object[])

CollapseValueAsync

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace