Home Forums WPF controls Xceed DataGrid for WPF Column reorder and scrolling

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

    If I have a Table view and the user scrolls both vertically and horizontally, when the user reorders a column the scrolled position is reset back to the origin. The expected behaviour from the user is for the scroll position not to be changed. I can reproduce this using the Xceed samples so I guess it is default behaviour.

    is this a case of me having to trap the column reorder event/property change and manually setting the scroll position, or is there an option to stop the grid from doing this automatically.

    Imported from legacy forums. Posted by Derek (had 680 views)

    Xceed Support
    Member
    Post count: 5658

    Unfortunately no.

    You will effectively have to trap the column re-order event and set back the Horizontal and Vertical offset.

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

    User (Old forums)
    Member
    Post count: 23064

    Thanks Marcus,

    I am able to trap the column being moved and hence get the scroll positions at that precice moment in time. When I finish processing the change the scroll positions have not been changed by the grid, but are then changed later as part of the column move/redraw – what event should I consider overriding to set the scroll position values back to what I would like?

    Imported from legacy forums. Posted by Derek (had 3394 views)

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