Skip to main content

ASPxPivotGrid.ExpandValue(Boolean, Object[]) Method

Expands the specified column or row.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v24.1.dll

NuGet Package: DevExpress.Web

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.

See Also