|
-
May 31st, 2024, 06:56 PM
#1
Thread Starter
Junior Member
Datagridview move to next column after cell editing
Hello,
I already have a solution to move to the next cell in my datagridview and works fine
I am using this code:
Private Sub DataGridView1_KeyDown(sender As Object, e As KeyEventArgs) Handles DataGridView1.KeyDown
If e.KeyCode = Keys.Enter Then
' Your code here
SendKeys.Send("{TAB}")
e.SuppressKeyPress = True
End If
End Sub
But after editing in a cell and by press on enter, then the focus goes to the next row.
Thanks in advance,
Marc.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|