C# 基础设施单元滚动时间框架增加
我有一个基础设施超级网格控制。当我将鼠标悬停在网格中的某个单元格上时,它会将该单元格的内容作为工具提示显示大约5秒钟。我想增加这个时间段。我试图重写该属性(C# 基础设施单元滚动时间框架增加,c#,infragistics,ultrawingrid,C#,Infragistics,Ultrawingrid,我有一个基础设施超级网格控制。当我将鼠标悬停在网格中的某个单元格上时,它会将该单元格的内容作为工具提示显示大约5秒钟。我想增加这个时间段。我试图重写该属性(AutoPopupDelay),但它仍然不起作用。请尝试上讨论的以下代码。您需要用单元格的值替换ToolTipText,但我假设您的代码已经这样做了 C#: } VB.NET: UltraGrid1.DisplayLayout.Override.TipStyleCell = TipStyle.Hide If e.Element.GetAnc
AutoPopupDelay
),但它仍然不起作用。请尝试上讨论的以下代码。您需要用单元格的值替换ToolTipText
,但我假设您的代码已经这样做了
C#:
}
VB.NET:
UltraGrid1.DisplayLayout.Override.TipStyleCell = TipStyle.Hide
If e.Element.GetAncestor(GetType(RowUIElement)) IsNot Nothing Then
If e.Element.GetType Is GetType(RowAutoPreviewUIElement) Then
ToolTipInfo.ToolTipTitle = "Row Warnings"
ToolTipInfo.ToolTipText = "Your cell value"
UltraToolTipManager1.SetUltraToolTip(UltraGrid1, ToolTipInfo)
UltraToolTipManager1.ShowToolTip(UltraGrid1)
End If
End If
UltraGrid1.DisplayLayout.Override.TipStyleCell = TipStyle.Hide
If e.Element.GetAncestor(GetType(RowUIElement)) IsNot Nothing Then
If e.Element.GetType Is GetType(RowAutoPreviewUIElement) Then
ToolTipInfo.ToolTipTitle = "Row Warnings"
ToolTipInfo.ToolTipText = "Your cell value"
UltraToolTipManager1.SetUltraToolTip(UltraGrid1, ToolTipInfo)
UltraToolTipManager1.ShowToolTip(UltraGrid1)
End If
End If