DxDataGrid<T>.SelectAll() Method

Selects all rows in the grid.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

public void SelectAll()

Remarks

You can use the Select All check box or call the SelectAll() method to select all rows according to the SelectAllMode property setting: all rows on the current page (Page) or all pages (AllPages).

NOTE

Use the SelectionMode property to allow users to select multiple rows in the grid.

Data Grid - Select All mode

<DxDataGrid Data="@DataSource"
    SelectAllMode="DataGridSelectAllMode.AllPages" >
    ...
</DxDataGrid>

@code {
    ...
    grid.SelectAll();
    ...
}

Online Demo

Data Grid - Selection

See Also