Possible duplicate:
Programmatically displaying a Datagrid column (horizontal scrolling)
I am using WPF with .NET 4 and WPF Toolkit DataGrid. I have a fairly wide datagrid, its first column is frozen, SelectionUnit - Cell.
All I need to do is scroll this datagrid to the last column after the window loads. I tried to "put" my datagrid into a ScrollViewer, but if I use it, the first column of the datagrid will no longer be frozen. I tried using the datagrid ScrollIntoView, but I did not select an element for it, and I cannot select the row to retrieve it (because of my SelectionUnit cell) ...
What can I do to solve my problem? Thanks!
source share