How to autoscroll on WPF datagrid

后端 未结 17 956
甜味超标
甜味超标 2020-12-08 09:27

I think I am stupid. I searched now for 15 minutes, and found several different solutions for scrolling on datagrids, but none seems to work for me.

I am using WPF w

17条回答
  •  失恋的感觉
    2020-12-08 10:16

    You should use the datagrid method

    datagrid.ScrollIntoView(itemInRow);
    

    or

    datagrid.ScrollIntoView(itemInRow, column);
    

    this way provides no messing around finding the scroll viewer etc.

提交回复
热议问题