Scroll datagrid to right in code

Hi,

I have a datagrid where, when adding a new row, I fill several columns automatically, so in that situation I set the focus to a column towards the right-hand side of the grid. That column, however, is only partly visible at that time. Is there a way that, at the same time I set the focus (I use OnAfterRenderAsync for this), I can scroll the datagrid to the right so that the column that has the focus is fully visible?

Many thanks
Reg

You can use scrollIntoView for that: