Link to home
Start Free TrialLog in
Avatar of TrialUser
TrialUserFlag for Afghanistan

asked on

datagridview trap enter key, vb.net, winforms

I have a datagrid view in a VB.net winforms application. Whenever the user presses the enter key in the datagridview, the currentcell should be changed to the last row first cell. I am able to achieve this using preview_keydown event. However when the user changes the value of a particular cell and then press enter key, these events are not trigerred. How can I trap the enter key press after a cell value was changed and set the current cell value to the last row first cell. Please help. Thanks. Any suggestion would be great
SOLUTION
Avatar of Roshan Davis
Roshan Davis
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TrialUser

ASKER

The keyup event worked thanks