Articles in this section
Category / Section

How to select the multiple rows on the SfDataGrid in UWP ?

3 mins read

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

<syncfusion:SfDataGrid x:Name="dataGrid"
                        AutoGenerateColumns="False"
                        NavigationMode="Row"
                        SelectionMode="Multiple"
                        SelectionUnit="Row"
                        ItemsSource="{Binding Path=OrdersDetails}">
</syncfusion:SfDataGrid>

 

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

<syncfusion:SfDataGrid x:Name="dataGrid"
                        AutoGenerateColumns="False"
                        SelectionMode="Multiple"
                        SelectionUnit="Cell"
                        ItemsSource="{Binding Path=OrdersDetails}">
</syncfusion:SfDataGrid>

 

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

Conclusion

I hope you enjoyed learning about how to select the multiple rows on the SfDataGrid in UWP.

You can refer to our UWP SfDataGrid feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our UWP SfDataGrid  example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied