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:
01493985
Views:
57
>>>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
>>
>>Probably because you remembered to wire up the delegate for the CellValidating event, but not for the CellEnter event.
>>
>>' You probably remembered this one
>>AddHandler CellValidating, AddressOf grdbase_CellValidating
>>' But not this one
>>AddHandler CellEnter, AddressOf grdbase_CellEnter
>>
>>

>Interestingly I did not need to addhandler CellValidating, because handles me.CellValidating worked. But handles me.CellEnter did not, that's why I asked my question in the first place.

Hmm. Wasn't clear from your original post exactly what you had tried but that syntax should also have worked like so:
Public Sub HandleCellValidating(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellValidatingEventArgs) _
    Handles Me.CellValidating
End Sub

Public Sub HandleCellEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) _
    Handles Me.CellEnter
End Sub
Maybe trying with the wrong parameters?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform