Skip to main content

DxPivotGridField.Area Property

Specifies the area in which the field is displayed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public PivotGridFieldArea Area { get; set; }

Property Value

Type Description
PivotGridFieldArea

A PivotGridFieldArea enumeration value.

Available values:

Name Description
Row

A row field.

Column

A column field.

Data

A data field.

Remarks

Use the field’s Area property to specify the field location: Column Header Area, Row Header Area, or Data Header Area.

PivotGrid Areas

  • Column Header Area contains fields that define grid columns.

    <DxPivotGridField Field="@nameof(SaleInfo.Date)" 
                      Area="PivotGridFieldArea.Column" />
    
  • Row Header Area contains fields that define grid rows.

    <DxPivotGridField Field="@nameof(SaleInfo.Region)" 
                      Area="PivotGridFieldArea.Row" />
    
  • Data Header Area contain fields that define data for grid cells.

    <DxPivotGridField Field="@nameof(SaleInfo.OrderId)" 
                      Area="PivotGridFieldArea.Data" 
                      Caption="Count"
                      SummaryType="PivotGridSummaryType.Count" />
    

Note

To hide field headers, set the ShowFieldHeaders property to false.

See Also