DxDataGrid<T>.ShowDetailRow Property

Specifies whether to display detail rows.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public bool ShowDetailRow { get; set; }

Property Value

Type Description
Boolean

Specifies whether to display detail rows.

Remarks

Set the ShowDetailRow property to true and specify the DetailRowTemplate to enable a master-detail relationship in the grid.

Data Grid - Show detail rows

<DxDataGrid Data="@ProductsDataSource" ShowDetailRow="true" >
    <DetailRowTemplate>
        ...
        <DxDataGrid 
            Data="@SalesDataSource.Where(x => x.ProductId == dataItem.Id)">
            ...
        </DxDataGrid>
    </DetailRowTemplate>
</DxDataGrid>

Run Demo: Data Grid - Master-Detail View

See Also