.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
Row

PivotLayout.PageOrder Property

Gets or sets the order in which multiple page fields are displayed in the PivotTable report filter area.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v21.1.Core.dll

Declaration

PivotPageOrder PageOrder { get; set; }

Property Value

Type Description
PivotPageOrder

A PivotPageOrder enumeration member.

Remarks

By default, when you add multiple fields to the report filter area, they are displayed in one column, one field below the other.

SpreadsheetPivotTable_OrganizePageFieldsInOneColumn

However, you can use the PageOrder and PivotLayout.PageWrap properties to rearrange page fields in the report.

  • To display page fields in multiple columns, set the PageOrder property to PivotPageOrder.DownThenOver and then use the PivotLayout.PageWrap property to specify the number of page fields to display in one column before the next column starts. The example below demonstrates how to organize six page fields in columns by three fields in each column.

    pivotTable.Layout.PageOrder = PivotPageOrder.DownThenOver;
    pivotTable.Layout.PageWrap = 3;
    

    SpreadsheetPivotTable_OrganizePageFieldsInColumns

  • To display page fields in multiple rows, set the PageOrder property to PivotPageOrder.OverThenDown and then use the PivotLayout.PageWrap property to specify the number of page fields to display in one row before the next row starts. The example below demonstrates how to organize six page fields in rows by three fields in each row.

    pivotTable.Layout.PageOrder = PivotPageOrder.OverThenDown;
    pivotTable.Layout.PageWrap = 3;
    

    SpreadsheetPivotTable_OrganizePageFieldsInRows

See Also