WPF DataGrid: how do I stop auto scrolling when a cell is clicked?

前端 未结 9 1141
旧巷少年郎
旧巷少年郎 2020-12-08 07:31

Problem:
If my DataGrid is not entirely visible (horizontal & vertical scrollbars are showing) and I click on one of my cells that is p

9条回答
  •  情深已故
    2020-12-08 07:48

    Here's what worked for me (after trying all of the less complex "answers" to date):

        
        
    

    ScrollViewer.CanContentScroll="False" seems mindbogglingly counter intuitive...

提交回复
热议问题