Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
165
UltratooltipManger
posted

I got this code looking over the web

===============

Private Sub UltraGrid1_MouseEnterElement(ByVal sender As Object, ByVal e As Infragistics.Win.UIElementEventArgs) Handles ug1.MouseEnterElement
Dim aRow As UltraGridRow

aRow = e.Element.GetContext(GetType(UltraGridRow))

If aRow Is Nothing Then Exit Sub

Dim 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

  • 7535
    Offline posted

    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.