Home Forums WPF controls Xceed DataGrid for WPF Complex sorting (e.g. Multi-level). in code

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #26779 |

    How Complex sorting or Multi level sorting is done in code

    Imported from legacy forums. Posted by Rachana (had 544 views)

    Xceed Support
    Member
    Post count: 5658

    Sorting, Custom Sorting and Multi-Level sorting can be done in code by using the DataGridControl.Items.SortDescriptions collection.

    e.g.

    myDataGridControl.Items.SortDescriptions.Add ( new SortDescription( “myFieldName”, ListSortDirection.Ascending ) );

    Imported from legacy forums. Posted by Marcus [Xceed] (had 808 views)

    Xceed Support
    Member
    Post count: 5658

    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)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.