blazor-devexpress-dot-blazor-df5779be.md
Lists values that specify whether the Select All checkbox selects all rows on the current page or on all grid pages.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public enum GridSelectAllCheckboxMode
| Name | Description |
|---|---|
Page |
The Select All checkbox selects and deselects all rows on the current grid page. This mode changes to Mixed when the Grid is bound to a large data source and vertical virtual scrolling mode is activated.
|
| AllPages |
The Select All checkbox selects and deselects all rows on all grid pages. This mode changes to Mixed when the Grid is bound to a large data source.
|
| Mixed |
The Select All checkbox selects and deselects all rows on the current grid page. An additional drop-down button displays a context menu that allows users to select and deselect all rows on all grid pages.
|
The following properties accept/return GridSelectAllCheckboxMode values:
| Library | Related API Members |
|---|---|
| Blazor | DxGrid.SelectAllCheckboxMode |
| IGrid.SelectAllCheckboxMode | |
| XAF: Cross-Platform .NET App UI & Web API | DxGridModel.SelectAllCheckboxMode |
When you declare a DxGridSelectionColumn object in the Columns template, the grid displays the selection column. The column header contains the Select All checkbox.
Set the SelectAllCheckboxMode property to a GridSelectAllCheckboxMode enumeration value to specify whether the checkbox selects all rows on the current page or on all grid pages.
<DxGrid Data="Products"
KeyFieldName="ProductId"
PageSize="6"
SelectAllCheckboxMode="GridSelectAllCheckboxMode.Mixed">
<Columns>
<DxGridSelectionColumn />
<DxGridDataColumn FieldName="ProductName" />
<DxGridDataColumn FieldName="UnitPrice" DisplayFormat="c" />
<DxGridDataColumn FieldName="UnitsInStock" />
<DxGridDataColumn FieldName="QuantityPerUnit" />
</Columns>
</DxGrid>
Run Demo: Grid - Selection Column
See Also