Hi Rich,
Thanks for using Syncfusion products.
We have analyzed your query and we are selecting the
items in Mousedown Event, So we can’t
get the selected items before MouseUp Event, but you can get whether the key
Pressed is Control or Shift by Handling the PreviewKeyDown Event. Please refer
the below Code Snippet.
CodeSnippet[C#]:
this.dataGrid.PreviewKeyDown += new KeyEventHandler(dataGrid_PreviewKeyDown);
void dataGrid_PreviewKeyDown(object sender,
KeyEventArgs e)
{
isControlKey = (e.KeyboardDevice.Modifiers & ModifierKeys.Control)
!= ModifierKeys.None;
isShiftKey = (e.KeyboardDevice.Modifiers & ModifierKeys.Shift) !=
ModifierKeys.None;
}
Please let us know if you have any queries.
Regards,
Santhosh.A