Datagridview Cursor movement

  • Thread starter Thread starter Paul Ilacqua
  • Start date Start date
P

Paul Ilacqua

How can I control the cursor movement within a datagridview in VB 2005. I
want the cursor to move right instead of down after the enter key is hit.
Do I need to create a class derived from datagridview?

Thanks
Paul
 
How can I control the cursor movement within a datagridview in VB 2005. I
want the cursor to move right instead of down after the enter key is hit.
Do I need to create a class derived from datagridview?

I don't think you need to derive a class, try altering the default behavior
by catching the KeyUp event and changing what happens when the enter key is
pressed to match the behavior you want, then set it to handled:

http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview_events.aspx
 
Back
Top