Skip to main content
Tab

GridViewCommandColumn.SelectAllCheckboxMode Property

Specifies the Select All check box visibility and selection mode.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(GridViewSelectAllCheckBoxMode.None)]
public GridViewSelectAllCheckBoxMode SelectAllCheckboxMode { get; set; }

Property Value

Type Default Description
GridViewSelectAllCheckBoxMode None

The type of the Select All selection mode.

Available values:

Name Description
None

The Select All check box is not displayed.

Page

The Select All check box selects and deselects all rows on the current grid page.

AllPages

The Select All check box selects and deselects all grid rows (on all grid pages).

Remarks

Set the SelectAllCheckboxMode property to Page or AllPages to enable the Select All check box. When the SelectAllCheckboxMode property value is None, the control does not display the check box within the command column.

When the row selection changes, the control raises the server-side ASPxGridBase.SelectionChanged or the client-side ASPxClientGridView.SelectionChanged event (based on the ProcessSelectionChangedOnServer property value).

Run Demo: ASPxGridView - Select All Rows

ASPxGridView - SelectAllCheckboxMode

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="EmployeeID">
    <Columns>
        <dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="true" SelectAllCheckboxMode="Page"/>
        <%--...--%>
    </Columns>
</dx:ASPxGridView>

Limitations

See Also