Write a program to do column sorting, reordering and resizing?

Write a program to do column sorting, reordering and resizing?



- The data grid provides the features on the column which can be sorted, reordered and resized according to the requirements.

- The columns can be enabled and disabled by using the column and row properties in the program.

The properties used in this are as follows:

CanUserReorderColumns // this enables or disables the re-ordering of the column
CanUserResizeColumns // this enables or disables the resizing of the column
CanUserResizeRows // this enables or disables the resizing of the row
CanUserSortColumns // this enables or disables the sorting of the row

The program is shown as:
<DataGrid ItemsSource="{Binding_Products}"
CanUserReorderColumns="True" CanUserResizeColumns="True"
CanUserResizeRows="False" CanUserSortColumns="True"/>
Post your comment