datagrid keydown event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the datagrid keydown event to make changes to selected rows
(increment a column value when + is pressed). This works for the first time
the key is pressed but the datagrid then goes in edit mode and jumps into the
first textcolumn for editing.
How can I prevent this behaviour? The datagrid should completely ignore the
keys I handle myself.
Thanks in advance
Ralf
 
I derived my own control from DataGrid using
PreProcessMessage for adding an additional Eventhandler.
Now I can cancel the behaviour of the datagrid.
But I have to click two times on the RowHeader to achieve
this. Only one time and I get the standard behaviour(??)
 
Back
Top