Back to Devexpress

Hierarchical Value Arrangement

aspnet-7261-components-pivot-grid-layout-hierarchical-value-arrangement.md

latest3.3 KB
Original Source

Hierarchical Value Arrangement

  • Dec 17, 2020
  • 2 minutes to read

When several fields are placed on the column or row area, field values are automatically arranged into a tree structure with expandable parents (see the image below). End-users can expand and collapse child groups to see more summarized or more detailed reports.

The table below lists the properties and methods, allowing you to customize the pivot grid’s layout in code (e.g. rearrange fields, change their expanded state, etc.):

MemberDescription
PivotGridFieldBase.AreaSpecifies the area of the Pivot Grid in which the field is displayed.
PivotGridFieldBase.AreaIndexSpecifies the field’s index from amongst the other fields displayed within the same area.
PivotGridFieldBase.SetAreaPositionPositions the field in the specified area and at the specified location.
ASPxPivotGrid.ExpandAllExpands all the columns and rows in the pivot grid.
ASPxPivotGrid.CollapseAllCollapses all the columns and rows in the pivot grid.
ASPxPivotGrid.ExpandAllColumnsExpands all columns.
ASPxPivotGrid.CollapseAllColumnsCollapses all columns.
ASPxPivotGrid.ExpandAllRowsExpands all rows.
ASPxPivotGrid.CollapseAllRowsCollapses all rows.
ASPxPivotGrid.ExpandValueExpands a specific column or row that is identified by the specified values.
ASPxPivotGrid.CollapseValueCollapses a specific column or row that is identified by the specified values.
PivotGridFieldBase.ExpandAllExpands all columns/rows which correspond to a column field or row field.
PivotGridFieldBase.CollapseAllCollapses all the rows/columns which correspond to a column field or row field.
PivotGridFieldBase.ExpandValueExpands the column/row that contains the specified value.
PivotGridFieldBase.CollapseValueCollapses the column/row that contains the specified value.

See Also

Hierarchical Value Presentation

Field Groups