Home Forums WinForms controls Xceed Grid for WinForms Sort on 2 columns?

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

    Is it possible to sort the grid on 2 columns at the same time?

    Regards
    C#

    Imported from legacy forums. Posted by C# (had 3980 views)

    Xceed Support
    Member
    Post count: 5658

    Hello,

    Yes. Via code, you simply need to add the columns you want to sort by to the grid’s SortedColumns collection.

    Via the designer, you can use the ColumnManagerRow. Holding the shift key while clicking on the corresponding column’s ColumnManagerCell will sort the grid according to the values of the columns.

    I hope this helps!

    Imported from legacy forums. Posted by Jenny [Xceed] (had 426 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Jenny.

    What if the user wants to sort on 2 columns at runtime?

    Is it possible by clicking on 2 different column-headers?
    (at runtime)

    Imported from legacy forums. Posted by C# (had 272 views)

    User (Old forums)
    Member
    Post count: 23064

    Yes, just like at design-time: use SHIFT to select multiple columns for sorting.

    Imported from legacy forums. Posted by Tommy (had 258 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks

    Imported from legacy forums. Posted by C# (had 5090 views)

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