Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CellEnter event blues
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
VB 8.0
OS:
Vista
Network:
Windows XP
Database:
Jet/Access Engine
Application:
Desktop
Divers
Thread ID:
01493921
Message ID:
01493948
Vues:
62
Thanks Viv, Bill I guess that you suggested the same as Viv right. It works for me like this. (Viv your VB syntax is excellent :) )
Public Class grdBase
    Inherits DataGridView

    Protected Overrides Sub OnCellEnter(ByVal e As System.Windows.Forms.DataGridViewCellEventArgs)
        If CurrentCell.ReadOnly = True Then
            SendKeys.Send("{TAB}")
            Exit Sub
        End If
        If columnDisabled(e.ColumnIndex) = True Then
            SendKeys.Send("{TAB}")
            Exit Sub
        End If
        MyBase.OnCellEnter(e)
    End Sub
End Class
Now why my approach of developing code in an instantiated grid and move and adapt it to the base class worked for CellValidating but not for CellEnter is one riddle I sitll have to live with ... I guess.

Thanks you very much anyway.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform