troubleshooting Question

VB.NET WINDOWS FORM DATAGRIDVIEW

Avatar of mpssg130
mpssg130 asked on
Microsoft ApplicationsMicrosoft Development
2 Comments1 Solution466 ViewsLast Modified:
How to make  when i using the Enter key in datagridview in the cell should behave like a tab key ?
please see the below code ,i'm trying to do in the datagridview keyup event to capture the enter key but it doesnt work??
Private Sub ScheduleGradeDataGridView_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles ScheduleGradeDataGridView.KeyUp
            If e.KeyData = Keys.Enter Then
                SendKeys.Send("{tab}")
                e.Handled = True
            End If
        ScheduleGradeDataGridView.SelectionMode = DataGridViewSelectionMode.RowHeaderSelect
    End Sub
ASKER CERTIFIED SOLUTION
B_Debasis

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros