Is it possible to hide a tooltip from being displayed in just one of my columns?
Thanks Mike. I just tried this and it does not seem to be working, although it makes sense. I have altered the code as follows to vb:
#Region "Creation Filter" Public Class ToolTipCreationFilter Implements IUIElementCreationFilter
Public Sub AfterCreateChildElements(ByVal parent As Infragistics.Win.UIElement) Implements Infragistics.Win.IUIElementCreationFilter.AfterCreateChildElements Dim cellUIElement As CellUIElement = TryCast(parent, CellUIElement) If Not cellUIElement Is Nothing Then Dim cell As UltraGridCell = DirectCast(cellUIElement.GetContext(GetType(UltraGridCell)), UltraGridCell) If Not cell Is Nothing Then If cell.Column.Key = ROW_NAME_AvailableList Then cellUIElement.ToolTipItem = Nothing End If End If End If End Sub
Public Function BeforeCreateChildElements(ByVal parent As Infragistics.Win.UIElement) As Boolean Implements Infragistics.Win.IUIElementCreationFilter.BeforeCreateChildElements Return False End Function End Class#End Region
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();