G
Guest
I have a Winform with a derived datagrid and a button that adds a row to the
datagrid in its Click event. The button has a shortcut text "&New Row".
When I enter a value in a datagrid cell and then mouse click the button
without tabbing out of the edited cell, everything is fine. If I hit Alt+N
instead after editing the cell, the cell values are reset to the previous
value of the cell before the button_click code is executed. I have tried
trapping various Key_down events, PreProcessMessage, etc. and this seems to
take place even before that. It seems that CancelEdit is implicitly being
called.
I would greatly appreciate any ideas about why this might be happening.
Thanks!!!
datagrid in its Click event. The button has a shortcut text "&New Row".
When I enter a value in a datagrid cell and then mouse click the button
without tabbing out of the edited cell, everything is fine. If I hit Alt+N
instead after editing the cell, the cell values are reset to the previous
value of the cell before the button_click code is executed. I have tried
trapping various Key_down events, PreProcessMessage, etc. and this seems to
take place even before that. It seems that CancelEdit is implicitly being
called.
I would greatly appreciate any ideas about why this might be happening.
Thanks!!!