PivotGridField.AllowedAreas Property
Gets or sets the areas within which the field can be positioned.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v26.1.dll
NuGet Package: DevExpress.Web
Declaration
[DefaultValue(PivotGridAllowedAreas.All)]
public PivotGridAllowedAreas AllowedAreas { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| PivotGridAllowedAreas | All | A PivotGridAllowedAreas value that specifies which areas the field can be positioned in. |
Available values:
| Name | Description |
|---|---|
| All | Specifies that a field can be positioned within any area. |
| RowArea | Specifies that a field can be positioned within the Row Header Area. |
| ColumnArea | Specifies that a field can be positioned within the Column Header Area. |
| FilterArea | Specifies that a field can be positioned within the Filter Header Area. |
| DataArea | Specifies that a field can be positioned within the Data Header Area. |
Remarks
The AllowedAreas property can be used to prevent the current field from being dragged to a particular area. The PivotGridAllowedAreas type is an enumeration. If a specific flag in the AllowedAreas value is cleared, the field cannot be positioned within the corresponding area.