datagrid keydown event

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
 
R

Ralf Ziller

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(??)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top