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
60
How to NOT sort values when using the Outlook-GroupBy header?
posted

Hello,

to start things off, I'll give you my current situation:

I have a column in the WinGrid which is possible to move up to the GroupBy header.
In this column are non-sorted values, e.g. "Word-Vorlage", "Test-Vorlage", "Amtsversion" and so on, in this order.

When I now drag this column to the header, the values of this column will automatically be sorted and grouped.

I want to have the values grouped, but not sorted. I didn't find any properties or other possibilities to solve this problem.

Is there a way to do this?

Thanks in advance,

Christopher Schwarz

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    It sounds like what you really want here is for the rows to be sorted, but not alphabetically. You need to sort them in a custom order. That's easy - you just need a SortComparer on the column.

    The rows have to be sorted, though, so that all of the items with the same value are adjacent.

Children