Home - Forums-.NET - FlyGrid.Net (Windows Forms) - showtooltip

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

showtooltip
Link Posted: 19-Jan-2006 06:30
Hi,
How can I show a tooltip ?

I've used myGrid.ShowToolTip("some text") but it is not shown...

also, how can I show a tooltip on a node, instead of the grid ?

Thanks
Link Posted: 19-Jan-2006 15:28
Can you provide me more details or code, scenario, how, where and when you would like show tooltip?
Link Posted: 19-Jan-2006 22:26
code:

Private Sub dgParams_NodeCellChange(ByVal sender As System.Object, ByVal node As NineRays.Windows.Forms.Data.NodeBase, ByVal index As Integer, ByVal value As System.Object) Handles dgParams.NodeCellChange
If index = EParamFields.e_controlField AndAlso Not value Is DBNull.Value Then
  dgParams.ShowToolTip("test")
End If
End Sub

Anything wrong?
Thanks
Link Posted: 20-Jan-2006 07:25
internal FlyGrid.Net tooltip it is difficult to use for these purposes, as any mouse move will hide this tooltip.
But you can use standard  System.Windows.Forms.ToolTip component:
[VB.Net]
Private Sub dgParams_NodeCellChange(ByVal sender As System.Object, ByVal node As NineRays.Windows.Forms.Data.NodeBase, ByVal index As Integer, ByVal value As System.Object) Handles dgParams.NodeCellChange
  If index = EParamFields.e_controlField AndAlso Not value Is DBNull.Value Then  
     Dim toolTip1 As New ToolTip()  
     toolTip1.SetToolTip(Me.dgParams, "test")
     toolTip1.Active = True
  End If
End Sub
Link Posted: 22-Jan-2006 22:15
Thank you for your help.
Any chance the line :toolTip1.SetToolTip(Me.dgParams, "test")
can be applied to a particular column or node of the flygrid, instead of showing up at the mouse's pointer location ?

thanks
Link Posted: 23-Jan-2006 13:55
Good idea , thank you, we'll try to insert ShowTooltip(string text, Point pt) to the nearest update of FlyGrid.Net.