The XtraGrid does not focus a row by a right-click. You can do this programmatically by setting the FocusedRowHandle property of a GridView. Most likely, you will be using the GridView.ShowGridMenu event to display a popup menu. Below is some sample code.
Imports DevExpress.XtraGrid.Views.Grid Private Sub GridView1_ShowGridMenu(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Grid.GridMenuEventArgs) Handles GridView1.ShowGridMenu Dim View As GridView = CType(sender, GridView) Dim HitInfo As ViewInfo.GridHitInfo HitInfo = View.CalcHitInfo(e.Point) If HitInfo.InRow Then View.FocusedRowHandle = HitInfo.RowHandle ContextMenu1.Show(View.GridControl, e.Point) End If End Sub