Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to handle keypress event in datagridview cell
Message
From
02/01/2009 23:38:35
Arjun Bagojikop
Dynamic Super Software
Sangli, India
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
How to handle keypress event in datagridview cell
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01370794
Message ID:
01370794
Views:
216
hi all
i am trying to handle keypress event but i am not getting result like after press enter key
Private Sub dataGridView_EditingControlShowing(ByVal sender As Object, ByVal e As DataGridViewEditingControlShowingEventArgs) Handles DataGridView1.EditingControlShowing
AddHandler e.Control.KeyDown, AddressOf Control_KeyPress
End Sub

Private Sub Control_KeyPress(ByVal sender As Object, ByVal e As KeyEventArgs)
MsgBox(e.KeyCode)


'If e.KeyChar = Chr(13) Then
' 'If (Char.IsNumber(e.KeyChar)) Then
' MsgBox("OK")

' ' //your code here
'End If

End Sub
Next
Reply
Map
View

Click here to load this message in the networking platform