I have a grid and want to show a tooltiptext when you hover the mouse over to that particular cell where i set the tooltiptext, but its not showing any tooltip text. I even tried the displaylayout.Override.TipStyleCell = TipStyle.Show; but no help.
This is my code: (ChildCell is a one of a cell in the ultragrid)
String ToolTip = "Original Projected Amt: {0}", 100); ChildCell.ToolTipText = ToolTip; ChildCell.Value = 200;
//just in case i also set an image for this cell using ChildCell.Appearance.Image
Hi,
This seems like it should work. What event are you using to set the ToolTipText?
Is it possible you are loading a layout into the grid at some point after this code is called that might be setting TipStyleCell back to Hide? You might try putting a button on the form that simply displays the TipStyleCell setting for the band.Override and the DisplayLayout.Override at run-time, just to be sure.
I also have this problem. the ToolTipText of UltraGridCell does't displayed (never).
I wrote that code in MouseEnterElement event, and when I set the tooltipText for the current cell (from e), I update the TipStyleCell to Show, and the toolTip does not display. What should I do?
this is my code:
private void ultraGrid1_MouseEnterElemnt(object sender, UIElementEventArgs e) { UltraGridCell cell = e.Element.GetContext(typeof(UltraGridCell)) as UltraGridCell; if ((cell != null) && (cell.Column.Equals(ultraGrid1.Rows.Band.Columns["PersonName"]))) { ultraGrid1.DisplayLayout.Override.TipStyleCell = TipStyle.Show; cell.ToolTipText = "___" + cell.Text; //tip.ShowAlways = true; //tip.SetToolTip(cell.GetUIElement().Control, cell.ToolTipText + "___"); }
}
If I use with ToolTip of Windows it's work good, but I want to use with ToolTipText of UltraGridCell.
thanks.