Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fire Event
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00786774
Message ID:
00786947
Vues:
30
TBLeave is a TextBox, this are inside a class that inherits from DataGridTextBoxColumnStyle

Private Sub TBLeave(ByVal sender As Object, ByVal e As EventArgs)

If myButton.MouseButtons = MouseButtons.Left Then
If MouseOver Then
Exit Sub
End If
End If

If _isEditing Then
SetColumnValueAtRow(_source, _rowNum, TB.Text)
_isEditing = False
Invalidate()
End If
TB.Hide()
myButton.Hide()
AddHandler Me.DataGridTableStyle.DataGrid.Scroll, New EventHandler(AddressOf
HandleScroll)
End Sub 'LeaveTB

Private Sub HandleScroll(ByVal sender As Object, ByVal e As EventArgs)
If TB.Visible Then
TB.Hide()
myButton.Hide()
End If
End Sub 'HandleScroll

How You can see in the scroll event of the DataGrid i hide the TextBox and the Button.

So from my form i want to fire the DataGrid Scroll Event.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform