Skip to main content
A newer version of this page is available. .
Tab

GridViewTemplates.EmptyDataRow Property

Gets or sets a template for displaying the empty data row.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

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

Property Value

Type Default Description
ITemplate *null*

An object that implements the ITemplate interface.

Remarks

Note

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

Example

This example illustrates how to customize the EmptyDataRow template. If it is necessary to only change the text displayed within EmptyDataRow, use the EmptyDataRow property.

<dx:ASPxGridView ID="ASPxGridView1" runat="server">
    <Templates>
        <EmptyDataRow>
            <dx:ASPxImage runat="server" ID="btn" ImageUrl="~/Images/Green.jpg" Width="100" />
            <div style="width: 300px;">
                No data to display...
            </div>
        </EmptyDataRow>
    </Templates>
</dx:ASPxGridView>
See Also