Skip to main content

ASPxPivotGrid.CellTemplate Property

Gets or sets a template to display the content of cells.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v22.1.dll

NuGet Package: DevExpress.Web


public virtual ITemplate CellTemplate { get; set; }

Property Value

Type Default Description
ITemplate null

An object supporting the System.Web.UI.ITemplate interface that contains the custom content for cells.


By creating a template of the CellTemplate type, you can define the custom content displayed for cells in the ASPxPivotGrid control. The cell appearance can be controlled by the PivotGridStyles.CellStyle or PivotGridField.CellStyle property.


Once a template defined via the CellTemplate property is created within a control, it is instantiated within a container object of the PivotGridCellTemplateContainer type. This container object exposes a set of specific properties to which the template’s child controls can be bound.

See Also