I'm using vb.net 2008 and DataGridView. I'm looking for code that will allow me to have the enter key move to the next column to the right instead of moving down one row while remaining in the same column.
datagridview
I'm using vb.net 2008 and DataGridView. I'm looking for code that will allow me to have the enter key move to the next column to the right instead of moving down one row while remaining in the same column.
Best Answer
If you are confirming an edit, just move to the next column in the event CellEndEdit. If you are not in edit mode, you need to override ProcessDialogKey. See example below: