Home › Forums › WPF controls › Xceed DataGrid for WPF › Complex sorting (e.g. Multi-level). in code
How Complex sorting or Multi level sorting is done in code
Imported from legacy forums. Posted by Rachana (had 544 views)
Sorting, Custom Sorting and Multi-Level sorting can be done in code by using the DataGridControl.Items.SortDescriptions collection.
myDataGridControl.Items.SortDescriptions.Add ( new SortDescription( “myFieldName”, ListSortDirection.Ascending ) );
Imported from legacy forums. Posted by Marcus [Xceed] (had 808 views)
Just to add to what Marcus said: version 2.1 will allow you to provide custom sort comparers.
Imported from legacy forums. Posted by Jenny [Xceed] (had 1501 views)