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.
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.