How to autoscroll on WPF datagrid

后端 未结 17 1011
甜味超标
甜味超标 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:28

    For having an AutoScroll To the Last element added :

    YourDataGrid.ScrollIntoView(YourDataGrid.Items.GetItemAt(YourDataGrid.Items.Count-1));
    

    May This Help :)

提交回复
热议问题