Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Special Error occurs no event, is Microsoft control prob
Message
De
17/11/2011 20:52:15
 
 
À
17/11/2011 10:46:11
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01528901
Message ID:
01529193
Vues:
29
Yes ,i know. But Microsoft Build-in Esc is use to remove current not accept row.

So my error is occur not accept row when user entry data , key enter and press Esc then Trigger build-in event,
else if current row accept , press Esc is no Trigger build-in event.

And my solve this method in below . Due to this error only occur in row 1, and the user entry data , key enter will auto go to dg_CellValidated.
But must accept this row .Press Esc no event.



Private Sub dg_CellValidated(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dg.CellValidated
If dg.RowCount = 1 Then
AppelBindingSource.EndEdit()
End If
End Sub


Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform