This example demonstrates how to create a command column and enable multiple selection mode.
Follow the steps below to enable multiple selection in a grid control:
-
Enable a command column's ShowSelectCheckbox property and set the SelectAllCheckboxMode property to
AllPages
to select and deselect all records on all grid pages. -
Set the grid's SelectionMode property to
Miltiple
.
<dx:ASPxGridLookup ID="gridLookup" runat="server" SelectionMode="Multiple" ...>
<Columns>
<dx:GridViewCommandColumn ShowSelectCheckbox="True" SelectAllCheckboxMode="AllPages" />
<!-- ... -->
</Columns>
<!-- ... -->
</dx:ASPxGridLookup>
- Default.aspx (VB: Default.aspx)
- Default.aspx.cs (VB: Default.aspx.vb)
(you will be redirected to DevExpress.com to submit your response)