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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only