Home Forums WPF controls Xceed DataGrid for WPF Custom sorting using IComparer

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

    I have read in that in the 2.1 release that support will be added for custom sorting using an IComparer interface.  In the meantime, does anyone know of a workaround so that I can sort columns using a custom compare method, rather than just the string values that are displayed?

     For example, I have a column that displays sizes of partitions on a computer, such as 160 GB, 800 MB, 100 GB, etc…  Currently, the list is sorting alphabetically, since I don’t have a way to sort on the actual underlying value.

    Do I have to wait for the 2.1 release, or is there another workaround?

    Imported from legacy forums. Posted by Todd (had 567 views)

    Xceed Support
    Member
    Post count: 5658

    Yes, support for custom comparer is for version 2.1

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

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