Click here to Skip to main content
Click here to Skip to main content

DataGridView: Make Enter Key Move to Next Column

, 7 Dec 2011 CPOL
Rate this:
Please Sign up or sign in to vote.
DataGridView: Make Enter Key Move to Next Column
To make a datagridview move to the next column when you press the enter key.
Using Enter Key to Move to nextCell...
Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit
End Sub
Private Sub DataGridView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyDown
    If e.KeyCode = Keys.Enter Then
    End If


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

India India
« I Love to Code ».
In the meantime I like to surf the Internet and get to know about new Technology, Watching Movies and playing cricket.

CodeProject helped me a lot to learn and I am always thankful to all the Members who make this happen.
Follow on   Twitter

Comments and Discussions

QuestionDatagridview Move Right On Enter PinmemberMember 160021029-Nov-14 21:48 
QuestionAn Alternative to Above Code PinprofessionalNikhil Bhivgade26-Apr-14 2:40 
AnswerRe: An Alternative to Above Code PinmemberRatnesh Mani Tripathi10-Jan-15 0:23 
GeneralMy vote of 3 PinmemberFrank Heimes25-Mar-14 0:00 
GeneralMake Enter Key Move to Next Column PinmemberBhongya16-Aug-12 9:38 
GeneralRe: Make Enter Key Move to Next Column PinmemberJαved17-Aug-12 20:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.150123.1 | Last Updated 7 Dec 2011
Article Copyright 2011 by Jαved
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid