PC Review


Reply
Thread Tools Rate Thread

Datagridview Cursor movement

 
 
Paul Ilacqua
Guest
Posts: n/a
 
      9th Mar 2010
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

 
Reply With Quote
 
 
 
 
Mike Lovell
Guest
Posts: n/a
 
      13th Mar 2010
> 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/libr...ew_events.aspx

--
Mike
GoTinker, C# Blog
http://www.gotinker.com

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cursor movement Andy Microsoft Excel New Users 4 8th Oct 2009 08:20 PM
cursor movement =?Utf-8?B?UmFuZHkgQnJhaXRod2FpdGU=?= Windows Vista General Discussion 5 8th May 2008 07:49 PM
cursor movement Karen Sheffler Windows Vista General Discussion 0 17th Apr 2008 06:58 PM
cursor movement Microsoft Excel Misc 1 30th Aug 2004 07:05 AM
Cursor movement Kwesi Thomas Microsoft Access Forms 1 4th Sep 2003 08:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:46 AM.