Skip to main content

MVCxPivotGridWebOptionsDataField.AreaIndex Property

Gets or sets the position of the data field headers.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int AreaIndex { get; set; }

Property Value

Type Description
Int32

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

Property Paths

You can access this nested property as listed below:

Object Type Path to AreaIndex
PivotGridSettings
.OptionsDataField .AreaIndex

Remarks

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

PivotGrid_DataField_DataFieldHeaders

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

PivotGrid_DataField_DataFieldHeaders_Index0

If the AreaIndex property is set to 1 the data field headers will be displayed under the field values of the first column field, as in the image below:

PivotGrid_DataField_DataFieldHeaders_Index1

See Also