title: DataGrid.SelectedItem not bound to currently selected cell
body: <p>Ran into this issue on several occasions. </p>
  
  <p>When finding SelectedItem or selected column on say right click menu or selecting combo box in a cell. The SelectedItem will be null or the previously selected row. </p>
  
  <pre><code>private void ComboBox_GotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) {
  // Correct  
  m_BeginEditString = ((ComboBox)sender).SelectedValue.ToString(); 
  
  // Wrong. selected item is last selected row, example clicking directly on combobox will not select row, and be null.
  m_BeginEditRow = (RowItem)MyDataGrid.SelectedItem; 
  }   
  
  &lt;DataGridTemplateColumn&gt;
     &lt;DataGridTemplateColumn.CellTemplate&gt;
      &lt;DataTemplate&gt;
          &lt;ComboBox SelectedItem="{Binding myItem, Mode=TwoWay, 
  NotifyOnSourceUpdated=True, UpdateSourceTrigger=PropertyChanged}" 
  ItemsSource="{Binding Source={StaticResource enum}}" 
  SelectionChanged="ComboBox_Changed" 
  LostKeyboardFocus="ComboBox_LostKeyboardFocus" 
  GotKeyboardFocus="ComboBox_GotKeyboardFocus" /&gt;
          &lt;/DataTemplate&gt;
     &lt;/DataGridTemplateColumn.CellTemplate&gt;
   &lt;/DataGridTemplateColumn&gt;
  </code></pre>