I have a gridview where I can select multiple rows by pressing a control key. Is it possible to achieve the same without pressing a control key.
I know this reply is a bit late but for everyone..
you can use InputSimulator and do this:
InputSimulator sim = new InputSimulator();
private void CommandeDataGridView_MouseHover(object sender, EventArgs e)
{
sim.Keyboard.KeyDown(WindowsInput.Native.VirtualKeyCode.LCONTROL);
}
private void CommandeDataGridView_MouseLeave(object sender, EventArgs e)
{
sim.Keyboard.KeyUp(WindowsInput.Native.VirtualKeyCode.LCONTROL);
}