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
1735
Header not getting detected correctly on Mouse event
posted
Hi, I am using ultragrid and have made a user control using it. Now on MouseMove event i am trying to detect the Column Header to diplay tool tip only for that particular column. The tool tip is getting displayed only at the top/bottom corner of the header and never at the center. I want it to be displayed whenever is the mouse cursor is on that perticular column header. Written following line of code in dgLog_MouseMove() event Dim colHeader As Infragistics.Win.UltraWinGrid.ColumnHeader Dim aUIElement As Infragistics.Win.UIElement = dgLog.GridDisplayLayout.UIElement.ElementFromPoint(New Point(se.MouseState.X, se.MouseState.Y)) If Not IsNothing(aUIElement) Then colHeader = aUIElement.GetContext(GetType(Infragistics.Win.UltraWinGrid.ColumnHeader)) If Not IsNothing(colHeader) Then If colHeader.Column.Key = "droppable_ind" Then ultrDroppableToolTipManager.ShowToolTip(dgLog) Else ultrDroppableToolTipManager.HideToolTip() End If End If Thanks, Chitra