Back to Devexpress

DxPivotTableField.Caption Property

blazor-devexpress-dot-blazor-dot-pivottable-dot-dxpivottablefield-185fef96.md

latest1.5 KB
Original Source

DxPivotTableField.Caption Property

Specifies the field’s caption displayed in Pivot Table’s header.

Namespace : DevExpress.Blazor.PivotTable

Assembly : DevExpress.Blazor.PivotTable.v25.2.dll

NuGet Package : DevExpress.Blazor.PivotTable

Declaration

csharp
[DefaultValue(null)]
[Parameter]
public string Caption { get; set; }

Property Value

TypeDefaultDescription
Stringnull

The field’s displayed caption.

|

Remarks

razor
<DxPivotTable Data="SalesData">
    <Fields>
        <DxPivotTableField Field="@nameof(Sales.SaleInfo.Date)"
                           GroupInterval="@PivotTableGroupInterval.DateYear"
                           Area="@PivotTableArea.Column"
                           AreaIndex="0" 
                           Caption="Year" />
        @*...*@
    </Fields>
</DxPivotTable>

Refer to the DxPivotTableField class description for additional information and an example.

Implements

Caption

See Also

DxPivotTableField Class

DxPivotTableField Members

DevExpress.Blazor.PivotTable Namespace