Back to Devexpress

CardViewTemplates.DataItem Property

aspnet-devexpress-dot-web-dot-cardviewtemplates-ac6d2f1c.md

latest1.9 KB
Original Source

CardViewTemplates.DataItem Property

Gets or sets a template for displaying a data item.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public virtual ITemplate DataItem { get; set; }
vb
<DefaultValue("")>
Public Overridable Property DataItem As ITemplate

Property Value

TypeDefaultDescription
ITemplateString.Empty

An object that implements the ITemplate interface.

|

Remarks

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

Note

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

DataItemTemplate

Card View

CardViewTemplates Class

CardViewTemplates Members

DevExpress.Web Namespace