cell.DataContext is a neat little trick to throw into a RoutedEventHandler(OnCellPreviewMouseDown) to make that DataRow the SelectedItem for the Grid BEFORE executing the Click event on e.g. a Button in a GridRow.
DataSourceItem l_DataSourceItem = cell.DataContext as DataSourceItem; this.MyGrid.SelectedItem = l_DataSourceItem;
Imported from legacy forums. Posted by Desmond (had 4198 views)