Back to Devexpress

GridViewCommandColumn.SelectAllCheckboxMode Property

aspnet-devexpress-dot-web-dot-gridviewcommandcolumn-8ffb90c4.md

latest3.1 KB
Original Source

GridViewCommandColumn.SelectAllCheckboxMode Property

Specifies the Select All check box visibility and selection mode.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(GridViewSelectAllCheckBoxMode.None)]
public GridViewSelectAllCheckBoxMode SelectAllCheckboxMode { get; set; }
vb
<DefaultValue(GridViewSelectAllCheckBoxMode.None)>
Public Property SelectAllCheckboxMode As GridViewSelectAllCheckBoxMode

Property Value

TypeDefaultDescription
GridViewSelectAllCheckBoxModeNone

The type of the Select All selection mode.

|

Available values:

NameDescription
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

aspx
<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

GridViewCommandColumn Class

GridViewCommandColumn Members

DevExpress.Web Namespace