DxPivotGridField.HeaderTemplate Property

Specifies a template used to display the field’s header.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public RenderFragment<object> HeaderTemplate { get; set; }

Property Value

Type Description
RenderFragment<Object>

The template content.

Remarks

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

The following code snippet shows how to set 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>
    </DxPivotGridField>
</DxPivotGrid>
See Also