GridViewTemplates.DetailRow Property
Specifies a template to display detail rows.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v22.1.dll
Declaration
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.
<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