IDataGridDetailRows Interface

Ships a detail row's settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

public interface IDataGridDetailRows :
    IComponentService,
    IDisposable

The following members accept/return IDataGridDetailRows objects:

Remarks

Objects that implement the IDataGridDetailRows interface are used to specify the DetailRows property value.

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

<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