DxDataGrid<T>.AutoCollapseDetailRow Property

Specifies whether an expanded detail row should be automatically collapsed when an end user expands another detail row.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

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

Property Value

Type Description
Boolean

true, to automatically collapse an expanded detail row; otherwise, false.

Remarks

<DxDataGrid Data="@ProductCategories.DataSource" AutoCollapseDetailRow="true" >
    ...
</DxDataGrid>
NOTE

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

Online Demo

Data Grid - Master-Detail View

See Also