I think I am stupid. I searched now for 15 minutes, and found several different solutions for scrolling on datagrids, but none seems to work for me.
I am using WPF w
When you are use datagridview with the scrollbar must use this technique. becuase i was try other technique. but those are not work properly....
var border = VisualTreeHelper.GetChild(mainDataGrid, 0) as Decorator;
if(border != null)
{ var scroll = border.Child as ScrollViewer;
if (scroll != null) scroll.ScrollToEnd();
}