Hi,
I need to detect KeyDown when the cell is in editmode. How can i accomplish that?
The KeyDown event on the grid does not fire when a cell is in editmode.
Thanks.
Best regards,
Wilfred
Another option is to use the DataGridView’s EditingControlShowing event.
Something like this:
private void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e)
{
e.Control.KeyDown -= myKeyDownEvent;
e.Control.KeyDown += myKeyDownEvent;
}
Best,
Levie
Hi Wilfred,
There is a pretty easy way to get around this.
Let me know if this works for you!
Best regards,
Levie
Please login first to submit.
