Back to Devexpress

PivotLayout.PageWrap Property

officefileapi-devexpress-dot-spreadsheet-dot-pivotlayout-b9b0faaf.md

latest3.0 KB
Original Source

PivotLayout.PageWrap Property

Gets or sets the number of page fields to display before starting another column or row based on the PivotLayout.PageOrder property value.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
int PageWrap { get; set; }
vb
Property PageWrap As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the number of page fields per column or row.

This value must be between 0 and 255. Otherwise, a ArgumentOutOfRangeException will be thrown.

|

Remarks

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

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

  • To display page fields in multiple columns, set the PivotLayout.PageOrder property to PivotPageOrder.DownThenOver and then use the 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.

  • To display page fields in multiple rows, set the PivotLayout.PageOrder property to PivotPageOrder.OverThenDown and then use the 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.

See Also

PageOrder

PivotLayout Interface

PivotLayout Members

DevExpress.Spreadsheet Namespace