Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
XamGrid unbound column sorting
posted

Hi

Could help me with UnboundColumn sorting. Could you create a sample project to show how to do it properly?

I tried to do it like in documentation but didn't get a positive result :(

Parents
No Data
Reply
  • 34810
    Verified Answer
    Offline posted

    Hello Andrey,

    I am assuming the documentation article that you are referring to is the following: http://help.infragistics.com/Help/Doc/WPF/2015.1/CLR4.0/html/xamGrid_Sorting_Unbound_Columns.html.

    If so, I would like you to take a look at the sample project I have attached. The UnboundColumn in the XamGrid will by default do a sort operation on your UnboundColumns as if all the values were strings, and if you wish to have this work another way, you will need to define an IComparer<yourType> instance for use with the SortComparer property on your UnboundColumn. In the IComparer's Compare method is where you can carry out the actual sorting operations.

    I have attached a sample project that is based on the documentation link above. I hope this helps you.

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer

    XamGridUnboundColumnSortCase.zip
Children