Hi friends.
I have a datagridview in my project.I want to navigate between cells( in a row) by pressing "Enter".I mean when user edits a cell, navigates to next cell by pressing Enter.(as we know navigation to the next row by pressing enter is the default action)
I tried to change the "currentcell" in datagridview_keypress.but it doesn't work. what should I do?
thx for ur attention.
Dajer
0
Junior Poster in Training
Recommended Answers
Jump to PostHere is an extension method to handle moving to the next cell. It doesn't behave exactly like the dataGridView because Microsoft did not expose a method to readily handle processing keys it seems. You could do better emulation if you wanted to use
SendKeys()
and send a Tab I …
All 2 Replies
Dajer
0
Junior Poster in Training
sknake
1,622
Senior Poster
Featured Poster
kvprajapati
commented:
Excellent!
+6
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.