ToolTipText for single cell in MSFlexGrid???
I was trying to set different ToolTipText for different cells in a flexgrid.
The tooltip is the same for the entire flexgrid, no matter the cell.
Is it possible at all to set individual tooltips for the cells?
If not - any alternative solutions?
Thanks everyone :wave:
Have a nice Wednesday ;)
Re: ToolTipText for single cell in MSFlexGrid???
Basically, in the MouseMove event, you can get the MouseRow & MouseCol - then set the ToolTipText of the grid accordingly. The code below displays the contents of the current cell you are hovering over in the tooltip. You can modify this according to your needs.
VB Code:
Private Sub grdTest_MouseMove _
(Button As Integer, Shift As Integer, X As Single, Y As Single)
On Error Resume Next
With grdTest
.ToolTipText = .TextMatrix(.MouseRow, .MouseCol)
End With
End Sub