Home Forums WinForms controls Xceed Grid for WinForms Numeric Editor Keypress Event Help Reply To: Numeric Editor Keypress Event Help

User (Old forums)
Post count: 23064

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)