title: WPF Toolkit: how to scroll datagrid to show selected item from code behind?
body: <p>I tried the following, all of which fail on function ScrollIntoView and give a NullReferenceException:</p>
  
  <pre><code>// doesn't work
  grid.SelectedItem = sItem;
  grid.ScrollIntoView(sItem);
  
  // doesn't work
  grid.SelectedItem = sItem;
  grid.Focus();
  grid.CurrentColumn = grid.Columns[0];
  grid.UpdateLayout();
  grid.ScrollIntoView(sItem,grid.Columns[0]);
  
  // doesn't work
  grid.SelectedItem = sItem;
  grid.UpdateLayout();
  grid.ScrollIntoView(sItem);
  </code></pre>
  
  <p>The problem is, when I select a row from code-behind, selection is not visible - it's somewhere down the bottom. Unless the user scrolls they feels that selection has vanished. I need to scroll a DataGrid to the point that user can see the selection.</p>
  
  <p>I also tried "BringIntoView" as well but no luck.</p>