1.

Write A Program To Do Column Sorting, Reordering And Resizing?

Answer»
  • 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"/>

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"/>



Discussion

No Comment Found