private void CheckBox_PreviewKeyDown(object sender, KeyEventArgs e) { try { if (e.Key == Key.Space) { int rowselect = dgFunctions.SelectedIndex; CheckBox_Click(null, null); dgFunctions.Items.Refresh(); DataGridHelper.NVSFocus(dgFunctions, rowselect, 2); } } catch (Exception ex) { CommonData.log.Error(ex.ToString()); } }
private void frmGroupUser_Right_Loaded(object sender, RoutedEventArgs e) { loaddata(); DataGridHelper.NVSFocus(dgFunctions, 0, 0); }