For others with similar issue, here's the VB translation... I use this
in the MouseDown event handler...
'//// begin code //////
'if we right-click, isolate the row underneath the mouse cursor
and set it as active
If e.Button = Windows.Forms.MouseButtons.Right Then
Dim row As Infragistics.Win.UltraWinGrid.UltraGridRow =
Nothing
Dim element As Infragistics.Win.UIElement = Nothing
element =
[yourGrid].DisplayLayout.UIElement.ElementFromPoint(e.Location)
row =
element.GetContext(GetType(Infragistics.Win.UltraWinGrid.UltraGridRow))
If (row IsNot Nothing) AndAlso (row.IsDataRow) Then
[yourGrid].ActiveRow = row
End If
End If
'///// end code /////
Thanks again Andy.
-ak