Hi, how can i disable the tooltip text for only one column in ultragrid control?
Thanks
Hi,
If you want to show tooltip text for selected columns, I suggest you to disable the tooltip text of UltraWinGrid. You can do this via disigner or with this piece of code:
ultraGrid1.DisplayLayout.Override.TipStyleCell =
TipStyle.Hide;
then write this small piece of code in your applications:
1. Get in your application: ultraToolTipManager;
2. Get the event “MouseEnterElement” of UltraWinGrid
3. Add the code below:
[code]
private void ultraGrid1_MouseEnterElement(object sender, Infragistics.Win.UIElementEventArgs e)
{
if (e.Element is CellUIElement && ((CellUIElement)e.Element).Cell.Column.Key == "Type your column key")
ultraToolTipManager1.ToolTipTitle = ((CellUIElement)e.Element).Cell.Text;
ultraToolTipManager1.ShowToolTip(ultraGrid1);
}
[\code]
Sincerely
Georgi
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
Hi, I've tried your code sample, but I get "The specified control has no UltraToolTipInfo" exception raised.
What have I missed?
Cheers
Hello JJKboswell,
I suppose that you need to set property: UltraGird1-> UltraToolTip on UltraTollTipManager -> Enabled = true. Also if you have a time you could take a look at the attached sample. Please let me know if you have any questions.
Regards