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
750
Tooltip ONLY on the grid caption
posted

Howdy,

I'm trying to only show a tooltip when someone is hovering over the UltraGrid caption.

I've tried disabling the UItraToolTipManager in the hover, if it's not over the right UIElement but that's not working. 

Here's my code:

    private void ugAlerts_MouseHover(object sender, EventArgs e)
    {
      ultraToolTipManager1.Enabled = false;
     
      Point clientPt = ugAlerts.PointToClient(Cursor.Position);
      Object obj = ugAlerts.DisplayLayout.UIElement.ElementFromPoint(clientPt);
      if (obj.GetType() == typeof(Infragistics.Win.TextUIElement))
      {
        Infragistics.Win.TextUIElement tuie = obj as Infragistics.Win.TextUIElement;
        if (tuie.Parent.GetType() == typeof(Infragistics.Win.UltraWinGrid.CaptionAreaUIElement))
        {
          ultraToolTipManager1.Enabled = true;
        }
      }
    }

I really thinking I'm missing something simple....

Any guidance?

thanks!