It looks like the grid defaults to showing a tool tip if the text in a particular cell gets cut off (the column width is decreased). I thought the tool tip would show the entire cell text, but it is not doing this. Is there a way to make the entire cell text show in the tool tip? I am only seeing what is already visible in the cell itself.
Thanks!
Steve
It looks like this will turn off tooltips for the entire grid any time you end a cell that meets these conditions. Don't you also have to set TipStyleCell back to default when you enter another cell? And does that work? I'm thinking that turning on the tooltip after you already entered another cell may be too late to show a tooltip for that cell.
The following worked for me on mouse enter event.
if
grid.DisplayLayout.Override.TipStyleCell =
The code you have here probably won't do anything. If you check, the ToolTipText is probably already null or empty. That property allows you to set the ToolTipText if you want to, but it has no relation to the automatic tooltips that are displayed by the grid.
I'm pretty sure there's a property to turn off tooltips, but I think it might only be available on the override, on not on a per-column basis.I'm not in the office today (due to snow), so I don't have the grid in front of me to check. But if I am right, then the only way to turn off the ToolTips for one column would be to use a CreationFilter and trap for the AfterCreateChildElements of the element which handles the tooltip. That's probably the CellUIElement, but it might be another element within the cell. Either way, you would have to find the correct element and modify the ToolTipInfo on the element itself.
You might be able to do this in MouseEnterElement rather than a CreationFilter, but I'm not sure if that will work.
I have requirement to hide the tooltip text for a specific column.
I tried on mouse enter event as below
cellUIElement.Cell.ToolTipText =
string.Empty;
but still showing the tooltip text.
Thanks
Oh ok. That could definitely be the problem. We are still using the 2006 version of the grid. However, we are upgrading to 2009 soon. I will see what happens once we upgrade.
Thanks Mike!