Tag
A newer version of this page is available. Switch to the current version.

PivotGridFieldBase.AreaIndex Property

Gets or sets the field’s index from among the other fields displayed within the same area.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v19.1.Core.dll

Declaration

[DefaultValue(-1)]
[XtraSerializableProperty(XtraSerializationFlags.DefaultValue, 1)]
[XtraSerializablePropertyId(3)]
public virtual int AreaIndex { get; set; }

Property Value

Type Default Description
Int32

-1

A zero-based integer that specifies the field’s index among the other fields displayed within the same area.

Remarks

Each field can be placed within one of four areas: Filter Header Area, Column Header Area, Row Header Area or Data Header Area. The AreaIndex property specifies the field’s index among the other fields displayed within the same area, and so specifies the field’s visual position.

Assigning a positive value to the AreaIndex property makes the current field visible in case it has been hidden. Similarly, if the field is visible assigning a negative value to this property will hide the field and will set its AreaIndex property to -1.

Use the PivotGridFieldBase.Area property to specify the area in which the field is displayed.

Multiple fields can be combined into a group via the PivotGridControl.Groups property. These fields cannot be separated and are always dragged together. To move a group to a specific area or to a new position within the current area use the PivotGridFieldBase.Area and AreaIndex properties of the first field in the group. Modifying the Area and AreaIndex properties for the second and subsequent fields in the group is ignored.

See Also