aspnet-devexpress-dot-web-dot-gridviewcommandcolumn-8ffb90c4.md
Specifies the Select All check box visibility and selection mode.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue(GridViewSelectAllCheckBoxMode.None)]
public GridViewSelectAllCheckBoxMode SelectAllCheckboxMode { get; set; }
<DefaultValue(GridViewSelectAllCheckBoxMode.None)>
Public Property SelectAllCheckboxMode As GridViewSelectAllCheckBoxMode
| 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).
|
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
<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="EmployeeID">
<Columns>
<dx:GridViewCommandColumn VisibleIndex="0" ShowSelectCheckbox="true" SelectAllCheckboxMode="Page"/>
<%--...--%>
</Columns>
</dx:ASPxGridView>
When the AllowSelectSingleRowOnly property is set to true, the SelectAllCheckBoxMode property is not in effect.
When cell merge is enabled, ASPxGridView does not support row selection.
See Also