IDataGridDetailRows Interface

Ships a detail row's settings.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.dll

Declaration

public interface IDataGridDetailRows :
    IComponentService,
    IDisposable

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>
See Also