Skip to main content

GridSelectAllCheckboxMode Enum

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.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum GridSelectAllCheckboxMode

Members

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.

Remarks

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>

Grid Select All Checkbox

Run Demo: Grid - Selection Column

See Also