Skip to main content
Tab

GridViewTemplates.DetailRow Property

Specifies a template to display detail rows.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

Declaration

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

Property Value

Type Default Description
ITemplate

null

An object that implements the ITemplate interface.

Remarks

Set the ShowDetailRow property to true to show detail rows.

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

Example

In the example below, the detail row template contains additional information about an employee.

Run Demo: ASPxGridView - Detail View

DetailRow

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False">
    <SettingsDetail ShowDetailRow="true" />
    <Templates>
        <DetailRow>
            Region:
            <dx:ASPxLabel ID="region" runat="server" Text='<%# Eval("Region") %>' Font-Bold="true"/>
            , City:
            <dx:ASPxLabel ID="city" runat="server" Text='<%# Eval("City") %>' Font-Bold="true"/>
        </DetailRow>
    </Templates>
</dx:ASPxGridView>
See Also