Overview
The selection feature in the WinForms DataGrid control allows users to select a row or cells like Excel. There is extensive support for all keyboard navigations or mouse interaction for selecting rows. Users can auto scroll the records to select rows faster for drag selection using the mouse. It is also possible to scroll rows or columns in code behind.
Row selection
Users can select rows using mouse interaction or keyboard navigation. The following ways are available to select items:
- Single-row selection (with deselect option)
- Multiple-row selection
- Extended multiple-row selection

Cell selection
Select a block of cells using mouse interactions or keyboard navigation. You can select cells in the following ways:
- Single-cell selection (with deselect option)
- Multiple-cell selection
- Extended multiple-cell selection

Selection in master-details view
Select one or more rows or cells in the master-details view grid with smooth navigation between the parent grid and child grid for all keyboard navigations and mouse drag selection.

CheckBox column selection
Allows users to select rows by interacting with the checkbox in a column. All the rows in a datagrid can also be selected by interacting with an intuitive checkbox in the column header.

Selection style
Users can customize the appearance of a row or cell selection:
- Text color
- Back color
- Selection border

Navigation modes
Navigate a cell based on a row or cell. Row-based keyboard navigation or mouse drag selection allows users to navigate only between rows like the list box selection.

Disable selection or navigation for columns
Disable selection or navigation on a particular column easily to make the read-only columns display data alone.
Custom selection behaviors
The WinForms DataGrid provides support to select rows or cells with your own custom selection behavior.
Keyboard interaction
Navigate rows or cells for selecting rows. Keyboard navigation is similar to Excel, including shift key combinations.
Mouse interaction
Select or clear a selection for a particular cell or row. Mouse-drag behavior is similar to Excel, including CTRL key combinations.
Our Customers Love Us