Skip to main content
Tab

GridViewTemplates.DataItem Property

Specifies a template to display data cells.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(null)]
public virtual ITemplate DataItem { get; set; }

Property Value

Type Default Description
ITemplate null

An object that implements the ITemplate interface.

Remarks

When you specify the DataItem property, the control creates a template within a container object of the GridViewDataItemTemplateContainer type.

At the column level, use the GridViewDataColumn.DataItemTemplate property to create a template for the column data cells.

Refer to the Create Templates topic for information on how to create templates for the Grid View control’s elements.

See Also