脆性细胞翻转时间增加



我有一个inffragistics超网格控件。当我将鼠标悬停在网格中的一个单元格上时,它会将该单元格的内容作为工具提示显示大约5秒钟。我想延长这个时间框架。我试图覆盖该属性(AutoPopupDelay),但它仍然不起作用。

尝试以下在inffragistics论坛上讨论的代码。您将希望用单元格的值替换ToolTipText,但我假设您的代码已经这样做了。

c#:

UltraGrid1.DisplayLayout.Override.TipStyleCell = TipStyle.Hide;
if (e.Element.GetAncestor(typeof(RowUIElement)) != null) {
    if (object.ReferenceEquals(e.Element.GetType, typeof(RowAutoPreviewUIElement))) {
        ToolTipInfo.ToolTipTitle = "Row Warnings";
        ToolTipInfo.ToolTipText = "Your cell value";
        UltraToolTipManager1.SetUltraToolTip(UltraGrid1, ToolTipInfo);
        UltraToolTipManager1.ShowToolTip(UltraGrid1);
}

}

VB。净:

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

最新更新