Skip to main content

DxGrid.DetailExpandButtonDisplayMode Property

Specifies when to display master-detail expand buttons.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public GridDetailExpandButtonDisplayMode DetailExpandButtonDisplayMode { get; set; }

Property Value

Type Default Description
GridDetailExpandButtonDisplayMode Auto

A GridDetailExpandButtonDisplayMode enumeration value.

Available values:

Name Description

Expand buttons are displayed when the DetailRowTemplate is specified.


Expand buttons are always hidden.


The Grid allows users to create master-detail layouts of any complexity. To enable this functionality, specify the DetailRowTemplate.

A user can click a data row’s expand/collapse button to change a detail row’s expansion state and show/hide detail data.

Grid - Collapse and Expand buttons

Use the DetailExpandButtonDisplayMode property to specify when to display master-detail expand buttons in the Grid. The default property value is Auto. The Grid shows expand buttons if the DetailRowTemplate is specified and the DetailRowDisplayMode is set to Auto. Otherwise, expand buttons are hidden.

The following example changes DetailExpandButtonDisplayMode to Never:

@inject NwindDataService NwindDataService

<DxGrid @ref="Grid" 
        <DxGridDataColumn FieldName="ContactName" SortIndex="0" />
        <DxGridDataColumn FieldName="CompanyName" />
        <DxGridDataColumn FieldName="Country" />
        <DxGridDataColumn FieldName="City" />
        <Grid_MasterDetail_NestedGrid_DetailContent Customer="(Customer)context.DataItem" />

@code {
    IGrid Grid { get; set; }
    object MasterGridData { get; set; }

    protected override async Task OnInitializedAsync() {
        MasterGridData = await NwindDataService.GetCustomersAsync();
    protected override void OnAfterRender(bool firstRender) {
        if(firstRender) {

Grid - DetailExpandButtonDisplayMode Never

See Also