Home Forums WPF controls Xceed DataGrid for WPF Sort Behavior

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

    From the online documentation:

    Clicking once will sort the column’s values in an ascending direction, the second click will sort them in a descending direction, while the third click will remove any sorting that has been applied to the column’s values. To sort the values of multiple columns, hold the SHIFT key while clicking on a ColumnManagerCell.

    My users are complaining about the “third state” where sorting is removed. They want the clicks to just toggle the sort between ascending & descending. How would I go about overriding this behavior?

    Imported from legacy forums. Posted by Lori (had 684 views)

    User (Old forums)
    Member
    Post count: 23064

    Got it – I hooked the PreviewMouseDown of the ColumnManagerRow and changed the sort definition there.

    Imported from legacy forums. Posted by Lori (had 2667 views)

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