Click here to Skip to main content
14,838,479 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need some sample for the datagridview that enable to key data using vb.net. And whenever the user press enter, then it will move the focus to another column.

The example is as below:
Name Age Height Waist Weight
A
B
C
D
E
F
G
H
I
J
K
L
M

The column name is not editable. And there will be the textboxes for column Age, Height, Waist and Weight. And I want it to be limited to 13 rows in the datagridview only. And when user key in age for A and press enter, it will move the focus to Height of A. When it reach the column Weight and user key in the data and press enter, it will move the focus to next row, B's Age.

Can anyone help me on this.
How to do this. Can anyone help me on this?
Posted
Updated 1-Dec-10 19:28pm
v2
Comments
Sandeep Mewara 2-Dec-10 1:29am
   
What effort have you made till now? What kind of help you are expecting.

1 solution

Sounds like you'll need to raise a keypress event when the focus is on your Datagridview. Then read the current position and move it one column further. Then check here for limiting the rows.
   

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900