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.
Unfortunately, activation email could not send to your email. Please try again.

How to select the multiple rows on the SfDataGrid?

SfDataGrid supports two types of Selection behavior such as, Row Selection and Cell Selection. You can do the Row selection by setting SelectionUnit to Row and Cell selection by setting SelectionUnit to Cell.

The following selection modes are provided for Row Selection and Cell Selection.

Single: It is used to select a single row or cell.

Multiple: It is used to select multiple rows or cells without holding down a modifier key.

Extended: It is used to select multiple rows or cells when holding down “SHIFT” and “CTRL” keys.

None: It disables a selection.

 

The following code sample explains you multiple row selection.

XAML

 

You can make multiple row selection by setting SelectionMode property to Multiple, SelectionUnit property to Row and NavigationMode property to Row.

The following screenshot displays the multiple selection of rows.

F:\KB\RowSeletion.png

The following code sample explains you multiple cell selection.

XAML

 

You can make multiple cell selection by setting SelectionMode property to Multiple and SelectionUnit property to Cell.

The following screenshot displays the multiple selection of cells,

F:\KB\CellSelection.png

Article ID: Published Date: Last Revised Date: Platform: Control: .NET Framework: Product Version:
2440 08/06/2014 01/25/2016 WPF SfDataGrid 4.5 12.1.0.43
Tags:
Did you find this information helpful?
Comments
Rahul Makwana May 08, 2018

How to access these seleted rows and its values?

Reply
Add Comment
You must log in to leave a comment

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.