If you programmatically select an item on a WPF datagrid, you may need to scroll to make sure that item is visible. One line of code will take care of that for you.
myGrid.ScrollIntoView(myGrid.SelectedItem);
That should do it.
Happy Coding!
All about GUI's, WPF and Silverlight
No comments:
Post a Comment