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
1130
tooltip
posted

Is it possible to hide a tooltip from being displayed in just one of my columns?

 

 

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    The TipStyleCell property is only on the Override and I can't find any property on the Column for this, so it looks like there's no really easy property for this. You should Submit a feature request to Infragistics.

    In the mean time, you can do this with a CreationFilter. It would look something like this:


        internal class ToolTipCreationFiter : IUIElementCreationFilter
        {
            #region IUIElementCreationFilter Members

            public void AfterCreateChildElements(UIElement parent)
            {
                CellUIElement cellUIElement = parent as CellUIElement;
                if (cellUIElement != null)
                {
                    UltraGridCell cell = cellUIElement.GetContext(typeof(UltraGridCell)) as UltraGridCell;
                    if (cell != null)
                    {
                        if (cell.Column.Key == "String 2")
                            cellUIElement.ToolTipItem = null;
                    }
                }
            }

            public bool BeforeCreateChildElements(UIElement parent)
            {
                return false;
            }

            #endregion
        }

     

    At some point, like perhaps in the Form_Load, you just have to assign an instance of the CreationFilter to the grid:

    this.ultraGrid1.CreationFilter = new ToolTipCreationFiter();

     

Children