Esempio n. 1
0
 private void SearchGrid_OnGotFocus(object sender, RoutedEventArgs e)
 {
     if (e.OriginalSource is DataGridCell cell && cell.Column is DataGridCheckBoxColumn)
     {
         SearchGrid.BeginEdit();
         if (cell.Content is CheckBox chkBox)
         {
             chkBox.IsChecked = !chkBox.IsChecked;
         }
     }
 }