So after reading several articals from microsoft i have done it. below is the code i used.
Private Sub DataGridView1_CellMouseDown(sender As Object, e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDown
If e.Button = MouseButtons.Right Then
DataGridView1.CurrentCell = DataGridView1(e.ColumnIndex, e.RowIndex)
End If
End Sub
since i assigned the context menu in the properties all i really did was make the right mouse button work the same way as the
left mouse button. I m sure others would do it differently but this works for me.