PivotGridFieldBase.Area Property
Gets or sets the area in which the field is displayed.
Namespace: DevExpress.XtraPivotGrid
Assembly: DevExpress.PivotGrid.v24.2.Core.dll
NuGet Packages: DevExpress.PivotGrid.Core, DevExpress.Win.Navigation
#Declaration
#Property Value
Type | Default | Description |
---|---|---|
Pivot |
Filter |
A Pivot |
Available values:
Name | Description |
---|---|
Row |
Corresponds to the Row Header Area. |
Column |
Corresponds to the Column Header Area. |
Filter |
Corresponds to the Filter Header Area. |
Data |
Corresponds to the Data Header Area. |
#Remarks
You can place a field in the following areas: Filter Header Area, Column Header Area, Row Header Area, and 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 AreaIndex property. You can use the AllowedAreas property to specify the areas within which the field can be positioned.
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 with 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 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.
#Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the Area 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.