Write a program to show different selection modes in data grid?

Write a program to show different selection modes in data grid?



- The data grid includes the selection modes that can be configured and customized according to the requirements.

- It includes the selection modes property as SelectionMode and SelectionUnit.

- The selection mode of the data grid can be set to either single or extended. This way it defines the selection of one or more units.

- SelectionUnit is used to define the scope of one selection unit in regarlds to the cell row by using the data as Cell, CellAndRowHeader and FullRow.

The program is as follows:
<DataGrid ItemsSource="{Binding_Products}"
SelectionMode="Extended" SelectionUnit="Cell" />
Post your comment