KeyDown event in DataGridView

0
0

Hi guys,
Im trying to add to my project the functionality described here: https://www.modernizing-applications.de/ihre-informationen/developer-blog/posts/2018/june/wisej-combobox-with-autosuggest.

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?

Best,
Alex

  • You must to post comments
Showing 0 results
Your Answer

Please first to submit.