Avatar of pratnaprakash
pratnaprakash
 asked on

enterkey on datagrid

I am using  DatagridView in Vb.net. I want to use ENTER key in datagridview to move from column to column. For example: I have 5 columns, Column1, Column2, Column3, Column4 and Column5.
When I press ENTER key in Column1, it has to move to Column2, then enterkey then move to Column3, then Column4 and finally when it reaches Column5, here.. when you press ENTER key it has to move to next row. So after completing moving from 1st column to 5th Column, it has to move to next row.

At present when you press enterkey it moves to next row, instead of columns to columns.

Please help.
.NET Programming

Avatar of undefined
Last Comment
Jorge Paulino

8/22/2022 - Mon
pratnaprakash

ASKER
I am using  DatagridView in Vb.net. I want to use ENTER key in datagridview to move from column to column. For example: I have 5 columns, Column1, Column2, Column3, Column4 and Column5.
When I press ENTER key in Column1, it has to move to Column2, then enterkey then move to Column3, then Column4 and finally when it reaches Column5, here.. when you press ENTER key it has to move to next row. So after completing moving from 1st column to 5th Column, it has to move to next row.

At present when you press enterkey it moves to next row, instead of columns to columns.

Please help.
Mike McCracken

I don't have a programming environment to cjeck this, but my memory of the datagrid is there is a property you can set for the ENTER key behavior.

mlmcc
ASKER CERTIFIED SOLUTION
Jorge Paulino

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23