Hi,
Is there a way to disable keyboard selection in the grid? i.e. I want to disable Shift-Up/Down arrow key and Ctrl-Space, but still allow navigation with the up/down arrow key.
Thanks,
Harold
Hello Harold,
I have been looking into your question and I can suggest you handle the ‘PreviewKeyDown’ event of the XamDataGrid and disable this keys combination like e.g. :
private void xamDataGrid1_PreviewKeyDown(object sender, KeyEventArgs e)
{
if ((e.Key == Key.Up && Keyboard.Modifiers == ModifierKeys.Shift) || (e.Key == Key.Down && Keyboard.Modifiers == ModifierKeys.Shift) || (e.Key == Key.Space && Keyboard.Modifiers == ModifierKeys.Control))
e.Handled = true;
}
If you need any further assistance on this matter, feel free to ask.