How do I trap the enter key (and other keys) in an editable datagrid (NOT DATAGRIDVIEW!) control using VB.NET

Can anyone answer this w/example code?  There are hundreds of answers on the web, but they all pertain to a datagridview--not a datagrid.  I found one example using C#, but they don't specify which event is being overloaded--and there is NO 'KeyPress', 'KeyDown', "KeyUp' event listed in the DataGrid control.

Thanks in advance for your expertise!  Remember, this question is for VB.NET, but I figured there are prolly folks w/C# that also know...
louisiana_bluesAsked:
Who is Participating?
 
louisiana_bluesAuthor Commented:
Since this question has been open for a week, yet has rec'd zero answers, please delete this question.  I have one more open question...if I don't get an answer for it, I'm going to cnacel my subscription.  No point in paying for experts when they don't hang out here anymore--only people that make 'suggestions' until they happen to glom onto a correct solution.

Delete this question please.
0
 
CyberLexCommented:
Greetings

With vb.net 2008 i do see the keyup, down events for the DataGrid.

Dim test As New DataGrid

    Private Sub test_key(ByRef sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles test.KeyUp

End Sub

at the end after handles the KeyUp came from intelisense selection

may that helps?
cheers
Lex
Dim test As New DataGrid
 
    Private Sub test_key(ByRef sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles test.KeyUp
 
        If e.KeyCode = Keys.Enter Then ......
 
    End Sub

Open in new window

0
 
louisiana_bluesAuthor Commented:
Um, I appreciate the response, and I should have been clearer.  I am using .NET for web.  Not forms.  Anyone?  Please help!
0
 
louisiana_bluesAuthor Commented:
I need to solve this before Monday!  Please help!!  I need an expert....
0
 
louisiana_bluesAuthor Commented:
yikes.  experts exchange used to be really good resource.  I've now asked two seemingly simple questions, and not received one response in a week.  it's not worth the money if I end up talking to myself all the time.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.