ASPxPivotGrid.HeaderTemplate Property
Gets or sets a template to display the content of field headers.
Namespace: DevExpress.Web.ASPxPivotGrid
Assembly: DevExpress.Web.ASPxPivotGrid.v19.2.dll
Declaration
Property Value
Type | Default | Description |
---|---|---|
ITemplate | *null* | An object supporting the System.Web.UI.ITemplate interface that contains the custom content for field headers. |
Remarks
By creating a template of the HeaderTemplate type, you can define the custom content displayed for all field headers in the ASPxPivotGrid control. The appearance settings used to paint field headers can be specified by the PivotGridStyles.HeaderStyle or PivotGridField.HeaderStyle property.
The content of a particular field header can be defined using the field’s PivotGridField.HeaderTemplate property, which takes precedence over the HeaderTemplate property.
Note
Once a template defined via the HeaderTemplate property is created within a control, it is instantiated within a container object of the PivotGridHeaderTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the HeaderTemplate property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.