Private Sub dgvGrid_CellMouseEnter(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvGrid.CellMouseEnter
Dim strNote as String
strNote = GetNote()
Me.dgvGrid.CurrentCell.Tooltiptext = strNote
End Sub
This code give me an "Object reference not set to an instance of an object." error
What do I need to do to set that ToolTipText to a string variable? How do I display variable data in the pop up tooltips of a datagrid cell?
When I set the tooltiptext to "hello" (me.dgvGrid.CurrentCell.ToolTipText = "Hello")
it works fine.
Thanks for your help
Dim strNote as String
strNote = GetNote()
Me.dgvGrid.CurrentCell.Tooltiptext = strNote
End Sub
This code give me an "Object reference not set to an instance of an object." error
What do I need to do to set that ToolTipText to a string variable? How do I display variable data in the pop up tooltips of a datagrid cell?
When I set the tooltiptext to "hello" (me.dgvGrid.CurrentCell.ToolTipText = "Hello")
it works fine.
Thanks for your help