KeyDown event in DataGridView


Hi guys,
Im trying to add to my project the functionality described here:

The problem I have found is that the DataGridView_KeyDown (and KeyUp) event does not fire for the Enter key. For other keys (including Space) the event fires correctly. Before telling me that my keyboard is broken, let me tell you that the KeyPress event fires ok also for the Enter key! 🙂  I would use the KeyPress if the EventArgs were the same as those of KeyDown.

Is this intented? Any ideas? Is this in any way related to the fact that the DataGridView is set as the DropDownControl of the UserComboBox?


  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.