ASPxPivotGrid.GetFieldByArea(PivotArea, Int32) Method
Returns a pivot grid field located at the specified position within the specified area.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public PivotGridField GetFieldByArea(
PivotArea area,
int areaIndex
)
#Parameters
Name | Type | Description |
---|---|---|
area | Pivot |
A Pivot |
area |
Int32 | An integer value that specifies the pivot grid field’s position from among the other fields displayed within the same area. |
#Returns
Type | Description |
---|---|
Pivot |
A Pivot |
#Remarks
The following example shows how to obtain the second field located within the Column Header Area.
// Quarter field
PivotGridField pgField =
pivotGrid.GetFieldByArea(DevExpress.XtraPivotGrid.PivotArea.ColumnArea, 1);
To obtain all pivot grid fields located in the specified area, use the ASPxPivotGrid.GetFieldsByArea method.