[Expand]General Information
[Collapse]WinForms Controls
  .NET Core Support
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Collapse]Data Grid
   [Expand]Get Started With Data Grid and Views
   [Expand]Data Binding
    Unbound Columns
   [Expand]Data Editing and Validation
   [Expand]Filter and Search
   [Collapse]Focus and Selection Handling
     Focusing Cells
     Moving Row Focus
     Using Navigators
     Multiple Row and Cell Selection
     Multiple Row Selection via Built-In Check Column and Selection Binding
    Format Cell Values
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
    Split Presentation
    Row Preview Sections
   [Expand]Batch Modifications
    Hit Information
    Popup Menus
   [Expand]Save and Restore Layout
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gantt Control
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Multiple Row Selection via Built-In Check Column and Selection Binding

The GridView, BandedGridView, and AdvBandedGridView views support multiple row selection via a built-in Check column. When this feature is enabled, end-users can use checkboxes to toggle the selection state of certain rows, all rows or data group rows.


The BandedGridView and AdvBandedGridView do not support row selection via the built-in Check column.

Demo: Web Style Row Selection module in the XtraGrid MainDemo

Expanded Enable Built-In Check Column

To enable row selection via the built-in Check column, set the properties as follows:

Expanded Check Column Specifics

Expanded Check Box in Column Header

The checkbox in the Check column header allows you to select/deselect all grid rows. Use the GridOptionsSelection.ShowCheckBoxSelectorInColumnHeader property to hide this checkbox.

Expanded Check Boxes in Group Rows

Group rows can also contain checkboxes if the GridOptionsSelection.ShowCheckBoxSelectorInGroupRow property value is True. These checkboxes switch the selection states of rows that belong to specific groups.

Expanded Sync Selection with Data Source

Specify the GridOptionsSelection.CheckBoxSelectorField property to bind the Check column to a field in the bound data source. When you change a row's selection state (via the Check column or in code), the grid automatically updates the specified data source field.

Check column bound mode provides the following advantages, in contrast to the default (unbound) mode:


In Check column bound mode, multiple row selection may lead to performance issues due to excessive data source updates. For instance, this may occur when clicking the check box embedded in the Check column's header for a grid bound to a large data source. Disable the GridOptionsSelection.ShowCheckBoxSelectorInColumnHeader for large data sources, or alternatively, use the Check column in unbound mode.


In Check column bound mode, group rows never display check boxes, regardless of the GridOptionsSelection.ShowCheckBoxSelectorInGroupRow setting.

Expanded Checkboxes in Print/Export Documents

The GridOptionsSelection.ShowCheckBoxSelectorInPrintExport property specifies the Check column's visibility in printed/exported documents.

Expanded Methods to Work with Selected Rows

See the Multiple Row and Cell Selection topic to learn about the methods used to select rows in code, retrieve and delete the selected rows, or copy them to the Clipboard.

Expanded See Also

Is this topic helpful?​​​​​​​