Skip to main content

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.v22.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

Important

The Data Grid was moved to maintenance support mode. No new features/capabilities will be added to this component. We recommend that you migrate to the Grid component.

<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.

Run Demo: Data Grid - Master-Detail View

See Also