The problem is that the KeyPress is not triggered for the “Enter” key because it is not an input key.
So what you can do is handle the QueryInputKey event of the NumericEditor, and “tell” the grid that the “Enter” is an input key for the editor. This will result in the KeyPress being raised, and you will be able to do what you want.
numEd.QueryInputKey += new QueryEditorInputKeyEventHandler( numEd_QueryInputKey );
void numEd_QueryInputKey( object sender, QueryEditorInputKeyEventArgs e )
if( e.KeyData == Keys.Enter )
e.IsInputKey = true;
Imported from legacy forums. Posted by André (had 3608 views)