Datagridview Cursor movement


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
 
Ad

Advertisements

M

Mike Lovell

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
 

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

Similar Threads

using a wait cursor while datagridview refreshes 1
DataGridView 0
DataGridView 3
DataGridView 0
datagridview 0
DataGridView 2
Datagridview 2
datagridview 1

Top