471,056 Members | 1,637 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,056 software developers and data experts.

vb.net datagrid

if a user presses enter key from any cell than i want to capture the text of that cell how to do this in vb.net ?

Oct 10 '06 #1
1 1538
If i am understanding your question, you could write a handler for the Datagrid.KeyPress event, check if the key was the enter key (using ASCII codes). If it was the enter key, then you can access the text that was typed into the current cell using the datagrid.Item(datagrid.currentcell)).ToString.
Let me know if you have any questions.

Oct 10 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Bill C. | last post: by
2 posts views Thread by pei_world | last post: by
3 posts views Thread by CVerma | last post: by
2 posts views Thread by CSL | last post: by
7 posts views Thread by Dave | last post: by
9 posts views Thread by rn5a | last post: by
2 posts views Thread by =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.