Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to handle keypress event in datagridview cell
Message
De
02/01/2009 23:38:35
Arjun Bagojikop
Dynamic Super Software
Sangli, Inde
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
How to handle keypress event in datagridview cell
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01370794
Message ID:
01370794
Vues:
219
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform