WPF DataGrid - How to stay focused on the bottom of the DataGrid as new rows are added?
.net, c#, datagrid, focus, wpf
Solution
Looks like `DataGrid.ScrollIntoView(<item>)` will keep the focus on the bottom of the `DataGrid`.
Problem
I am using `DataGrid` from the WPF Toolkit and I need to be able to maintain focus on the bottom of the grid (i.e. the last row). The problem I'm having right now is that as rows are added the scrollbar for the `DataGrid` doesn't scroll along with the new rows being added. What's the best way to accomplish this?