Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CellEnter event blues
Message
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
VB 8.0
OS:
Vista
Network:
Windows XP
Database:
Jet/Access Engine
Application:
Desktop
Miscellaneous
Thread ID:
01493921
Message ID:
01493948
Views:
61
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform