Skip to main content
A newer version of this page is available. .

PivotGridControl.ExpandValue(Boolean, Object[]) Method

Expands a specific column or row that is identified by the specified values.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.XtraPivotGrid.v19.1.dll

Declaration

public void ExpandValue(
    bool isColumn,
    object[] values
)

Parameters

Name Type Description
isColumn Boolean

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

values Object[]

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

Remarks

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.

Consider the following PivotGrid control:

CollapseValue_method_res

To expand the “Austria” column (within the “Alice Mutton” column), use the following code:


pivotGridControl1.ExpandValue(true, new object[] {"Alice Mutton", "Austria"});

The result of this operation is shown below:

CollapseValue_method

See Also