Back to Devexpress

PivotGridControl.DataFieldAreaIndex Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridcontrol-fbfc8409.md

latest3.7 KB
Original Source

PivotGridControl.DataFieldAreaIndex Property

Gets or sets the position of the data field headers.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public int DataFieldAreaIndex { get; set; }
vb
Public Property DataFieldAreaIndex As Integer

Property Value

TypeDescription
Int32

An integer which specifies the position of the data field headers within the hierarchy of field values.

|

Remarks

Data field headers are displayed if the PivotGridControl contains two or more data fields. By default, the DataFieldAreaIndex property is set to -1 , so the data field headers are displayed above the Data Area when they are positioned within the column area (or immediately to the left of the Data Area when positioned within the row area):

Setting the DataFieldAreaIndex property to 0 displays data field headers above the field values of the first column field:

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataFieldAreaIndex property.

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.

wpf-pivot-grid-hide-specific-columns-and-row/CS/WpfApp/Data.cs#L35

csharp
pivot.DataFieldArea = DataFieldArea.ColumnArea;
    pivot.DataFieldAreaIndex = 1;
}

wpf-pivot-grid-split-field-value-cells/CS/Data.cs#L33

csharp
pivot.DataFieldArea = DataFieldArea.ColumnArea;
    pivot.DataFieldAreaIndex = 1;
}

wpf-pivot-grid-hide-specific-columns-and-row/VB/WpfApp/Data.vb#L38

vb
pivot.DataFieldArea = DataFieldArea.ColumnArea
    pivot.DataFieldAreaIndex = 1
End Sub

wpf-pivot-grid-split-field-value-cells/VB/Data.vb#L46

vb
pivot.DataFieldArea = DataFieldArea.ColumnArea
    pivot.DataFieldAreaIndex = 1
End Sub

See Also

PivotGridControl Class

PivotGridControl Members

DevExpress.Xpf.PivotGrid Namespace