Skip to main content

CardViewTemplates.DataItem Property

Gets or sets a template for displaying a data item.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll


public virtual ITemplate DataItem { get; set; }

Property Value

Type Default Description
ITemplate String.Empty

An object that implements the ITemplate interface.


A data column provides the CardViewColumn.DataItemTemplate property, which provides you a custom template for displaying its cells.


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

See Also