ASPxPivotGrid.CellTemplate Property

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

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v19.2.dll

Declaration

[DefaultValue(null)]
public virtual ITemplate CellTemplate { get; set; }
<DefaultValue(Nothing)>
Public Overridable Property CellTemplate As ITemplate

Property Value

Type Default Description
ITemplate

null

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

Remarks

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.

NOTE

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