Skip to main content
Tab

ASPxDataView.EmptyItemTemplate Property

Gets or sets a common template used for displaying the content of all empty items within the data view.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

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

Property Value

Type Default Description
ITemplate null

An object that supports the System.Web.UI.ITemplate interface which contains the template used for displaying the content of all items within the data view.

Remarks

Use the EmptyItemTemplate property to define a common content for all empty items within the ASPxDataView control. The template created using this property replaces the content of each data item preserving its style settings (if specified).

Note

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

See Also