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

How to select the multiple rows on the SfDataGrid?

Platform: UWP |
Control: SfDataGrid |
Published Date: January 25, 2016 |
Last Revised Date: January 25, 2016 |
.NET Framework: 4.5 |
Product Version: 12.1.0.43
Tags: selection

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

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning 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.Close Icon