We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Overview

The selection feature in the WPF DataGrid control allows users to select a row or cells like in Excel. There is extensive support for all keyboard navigation or mouse interaction for selecting rows. Users can auto scroll the records to select rows faster for drag selection using the mouse. It’s also possible to scroll the rows or columns in code behind.


Row selection

Users can select rows using mouse interaction or keyboard navigation. The following different ways are available to select items:

  • Single-row selection
  • Multiple-row selection
  • Extended multiple-row selection

Row selection in WPF datagrid


Cell selection

Select a block of cells using mouse interactions or keyboard navigation. The following different ways are available to select cells:

  • Single-cell selection
  • Multiple-cell selection
  • Extended multiple-cell selection

Cell selection in WPF datagrid


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 navigation and mouse drag selection.

selection in master details view of WPF datagrid


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.

wpf datagrid shows selecting rows using checkbox column


Selection style

Users can customize the appearance of a row or cell selection:

  • Text color
  • Back color
  • Selection border

customization pf selection style in WpF datagrid


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 in list box selection.

row selection navigation mode in WPF datagrid


Disable selection or navigation for columns

Disable the selection or navigation on a particular column easily to make read-only columns to display the data alone.


Custom selection behaviors

Select rows or cells with your own custom selection behavior.


Keyboard interaction

Navigate rows or cells for selecting rows. Keyboard navigation is similar to that in Excel, including shift key combinations.


Mouse interaction

Select or clear a selection for a particular cell or row. Mouse-drag behavior is similar to that in Excel, including CTRL key combinations.


90+ WPF CONTROLS

Scroll up icon

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.