I got this code looking over the web
===============
Private Sub UltraGrid1_MouseEnterElement(ByVal sender As Object, ByVal e As Infragistics.Win.UIElementEventArgs) Handles ug1.MouseEnterElementDim aRow As UltraGridRowaRow = e.Element.GetContext(GetType(UltraGridRow))If aRow Is Nothing Then Exit SubDim tti As New Infragistics.Win.UltraWinToolTip.UltraToolTipInfo(aRow.Cells(1).Text, Infragistics.Win.ToolTipImage.None, "", Infragistics.Win.DefaultableBoolean.True)UltraToolTipManager1.SetUltraToolTip(ug1, tti)UltraToolTipManager1.ShowToolTip(ug1)End Sub
========================
But when hover over rows that does not have info it shows a blank tooltip, How to avoid this?
ariel
Hello Ariel ,
Thank you for posting to our forum.
In order to avoid showing tooltip for the blank row you should have a conditional string check for that.
Make a for loop to Check if your infor is not blank and then only in that loop call ‘ShowToolTip’ method.
Please let me know if you need further assistance on this matter.