This simple method allows you to move a row into the viewport when the DataGrid has scrollbars showing. Rather irritatingly the viewport only scrolls enough to bring the row into view. So if you call this after the DataGrid is loaded, the desired row is at the bottom of the viewport.
There is a simple trick to get the row to appear at the top of the view though. Just call ScrollIntoView twice. The first time pass the last row in the DataGrid and the second time pass in the desired row.
Tags: DataGrid, scrollintoview, WPF 4
