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

ASPxPivotGrid.ExpandValue(Boolean, Object[]) Method

Expands the specified column or row.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v18.2.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 identifies the column/row to be expanded.

Remarks

The image below shows a pivot grid control with indexed column field values:

pivotgrid_expandvalue

The following table lists the examples of using the ExpandValue method:

The ExpandValue method call example The index of the expanded field value cell
ASPxPivotGrid.ExpandValue(true, new object[] {“UK”, “Beverages”, “1995”}); 2
ASPxPivotGrid.ExpandValue(true, new object[] {“UK”, “Condiments”}); 3
ASPxPivotGrid.ExpandValue(true, new object[] {“USA”}); 5

Row field values are identified in the same manner as column field values.

To collapse a particular column/row, use the ASPxPivotGrid.CollapseValue method.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExpandValue(Boolean, Object[]) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also