Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PivotGridField.SetAreaPosition(FieldArea, Int32) Method

Positions the field in the specified area and at the specified location.

Namespace: DevExpress.Xpf.PivotGrid

Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public void SetAreaPosition(
    FieldArea area,
    int areaIndex
)

#Parameters

Name Type Description
area FieldArea

A FieldArea enumeration member that specifies the area in which the field is placed.

areaIndex Int32

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

#Remarks

Each field can be positioned within one of four areas: Filter Header Area, Column Header Area, Row Header Area and Data Header Area.

The SetAreaPosition method sets the field’s PivotGridField.Area and PivotGridField.AreaIndex properties. You can specify in which areas the field is allowed to be located using the PivotGridField.AllowedAreas property. To obtain whether the field can be located in a particular area, use the PivotGridField.IsAreaAllowed property.

See Also