Skip to main content

DxPivotGridField.HeaderTemplate Property

Specifies a template used to display row and column headers.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public RenderFragment<object> HeaderTemplate { get; set; }

Property Value

Type Description

The template content.


The HeaderTemplate property specifies the content for the row or column header. Use the template’s context parameter to get the field value.

PivotGrid Areas

The following code snippet sets a group interval:

<DxPivotGrid Data="@GridData">
    <DxPivotGridField Field="@nameof(SaleInfo.Date)" GroupInterval="PivotGridGroupInterval.Quarter" Area="PivotGridFieldArea.Column" Caption="Quarter">
        <HeaderTemplate>@string.Format("Q{0}", context)</HeaderTemplate>
See Also