Private Function IsPointOverUltraGridActiveRow(ByVal pt As Point) As Boolean If Not Me.ultraGrid1.DisplayLayout.ActiveRow Is Nothing Then If (Me.ultraGrid1.DisplayLayout.ActiveRow.GetUIElement().PointInElement(pt)) Then Return True End If End If Return False End Function
using System.Diagnostics; using System.Windows.Forms; private void ultraGrid1_MouseMove(object sender, MouseEventArgs e) { if(IsPointOverUltraGridActiveRow(new Point(e.X,e.Y))) { Debug.WriteLine("Over Active Row"); } else { Debug.WriteLine("Not Over Active Row"); } } private bool IsPointOverUltraGridActiveRow(Point pt) { if(null != this.ultraGrid1.DisplayLayout.ActiveRow) { if(this.ultraGrid1.DisplayLayout.ActiveRow.GetUIElement().PointInElement(pt)) return true; } return false; }