Datagrid data entry problem in WinForm
-
In a number column in Datagrid, I want to enter a negative number by using the NumPad "-" key. It does not work at all, but if I use "-" key in number row in the main key board, it works fine. After a further research, it seems that NumbPad "-" or "+" key does not fire a key_down or key_press event,(means no way to capture these two keys). Anyone knows how to solve it?
-
In a number column in Datagrid, I want to enter a negative number by using the NumPad "-" key. It does not work at all, but if I use "-" key in number row in the main key board, it works fine. After a further research, it seems that NumbPad "-" or "+" key does not fire a key_down or key_press event,(means no way to capture these two keys). Anyone knows how to solve it?
See: protected override bool ProcessKeyPreview(ref Message m) protected override bool ProcessDialogKey(Keys keyData) or other methods with Key in names. Hi, AW