2014-05-20 4 views
0

Infragistics UltraGrid 컨트롤이 있습니다. 그리드의 셀 위로 마우스를 가져 가면 약 5 초 동안 툴팁으로 셀의 내용을 표시합니다. 이 기간을 늘리고 싶습니다. 해당 속성 (AutoPopupDelay)을 재정의하려했지만 여전히 작동하지 않습니다.Infragistics 셀 롤오버 시간 프레임 증가

답변

0

Infragistics forum에서 논의 된대로 다음 코드를 시도하십시오. 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.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