Questo codice l'ho utilizzato in un mio progetto.
Te lo posto un po' modificato per poterlo adattare.
codice:
Private Sub FlexGrid_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
Dim Inizio As Integer
Dim Riga As Integer
If y < FlexGrid.RowHeight(0) Then Exit Sub
For i = 1 To FlexGrid.Rows - 1
Inizio = FlexGrid.RowPos(i)
If Inizio > y Then
Riga = i - 1
Exit For
End If
Next
If Riga = 0 Then Riga = i - 1
If Riga > 0 Then
If Button = 2 Then
PopupMenu ilTuoMenu
End If
End If
End Sub
La variabile riga rappresenta proprio la riga in cui hai fatto click col tasto destro