Click here to Skip to main content
15,907,329 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Data Grid View Use in C#.Net in Window base and i want to use Enter key as a Tab Key.
and also we can work on various rows. for current update..... please answer me quickly...
Posted
Comments
Pheonyx 8-Mar-13 10:09am    
Please can you clarify the second part of your question.
ALOK CHANDAN 9-Mar-13 0:53am    
i am using data grid view in dot net in which i want to traverse column by column through enter key it must traverse column by column not by last column suppose i have 5 columns in data grid view and started using the first column now after pressing enter key it must visit the second column not the last and if i pressed the enter key in the 3rd column in the current row and forgot to update any value in the previous column of the current row or previous row i can move my cursor at the required column and after updating the value in that column i want to start traversing once again from the column to last column (column by column )by pressing enter key .

1 solution

As for part 1 -> if you catch the "Key Down" event on the data grid and check for the Enter key, you should be able to cancel the press and send a Tab Key press instead.
 
Share this answer
 
Comments
ALOK CHANDAN 28-Jul-13 14:57pm    
this is not working properly. kindly suggest proper code.
Pheonyx 28-Jul-13 17:22pm    
Well, this clearly wasn't urgent as this is now over 4 months since my solution was posted.
What do you mean by "this is not working properly" I can't see your screen, I can't see your code.

Can you use the "improve question" feature to post the code you are trying. Then I will see if I can help based on what you have tried. Also, explain what you mean by "this is not working properly"

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