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

PivotGridFieldBase.Area Property

Gets or sets the area in which the field is displayed.

Namespace: DevExpress.XtraPivotGrid

Assembly: DevExpress.PivotGrid.v18.2.Core.dll

Declaration

[XtraSerializableProperty(XtraSerializationFlags.DefaultValue, 0)]
[XtraSerializablePropertyId(3)]
[DefaultValue(PivotArea.FilterArea)]
public PivotArea Area { get; set; }

Property Value

Type Default Description
PivotArea

FilterArea

A PivotArea value that specifies the area in which the field is displayed.

Available values:

Name Description
RowArea

Corresponds to the Row Header Area.

ColumnArea

Corresponds to the Column Header Area.

FilterArea

Corresponds to the Filter Header Area.

DataArea

Corresponds to the Data Header Area.

Remarks

A field can be placed within one of four areas: Filter Header Area, Column Header Area, Row Header Area or Data Header Area. The Area property specifies the area in which the field is displayed. To get the field’s position among the other fields within the same area use the PivotGridFieldBase.AreaIndex property.

Dragging a field from one area to another automatically changes the Area property’s value and vice versa.

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 Area and PivotGridFieldBase.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