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
455
ToolTip
posted

Anyone,

I'm trying to add a tooltip to my ultragrid when the user hovers over a cell. My first step was to just get the tooltip to display when the user was over a cell and then I was going to check for a specific cell in the next step. I can't get the following code to work to display the cell. I have the ultraToolTipManager on the form.

My code is below. Thanks, Kris

if (e.Element is Infragistics.Win.UltraWinGrid.CellUIElement)

{

// Get the cell location.

Point pt = new Point(e.Element.Rect.X, e.Element.Rect.Y);

// Get a refernce to the cell.

Infragistics.Win.UltraWinGrid.UltraGridCell cell = igrdAgentPool.GetChildAtPoint(pt);

// Make sure the mouse is over a cell.

if (cell != null)

{

Infragistics.Win.UltraWinToolTip.
UltraToolTipInfo tipInfo =

new Infragistics.Win.UltraWinToolTip.UltraToolTipInfo("Click Button", ToolTipImage.Info, "Delete Record", DefaultableBoolean.True);

// Display the tooltip.

ultraToolTipManager.SetUltraToolTip(igrdAgentPool, tipInfo);

ultraToolTipManager.ShowToolTip(igrdAgentPool);

}

}

else

ultraToolTipManager.HideToolTip();

Parents
No Data
Reply Children