I need to detect if the mouse is over the column headers and suppress my custom pop-up menu. The built in popup menus displays together with mine. I want to suppress my pop-up and show the grid header popup menu only. How would I do that?
I'm using this code:
Private Sub GridControl1_MouseDown(sender As System.Object, e As System.Windows.Forms.MouseEventArgs) Handles GridControl1.MouseDown
'MsgBox(e.Location.ToString)
'have to take into account nav3 dimensions hosting form
'lets suppress this for awhile
Dim x As Integer = e.X + Nav3.NavBarControl1.Width
Dim y As Integer = e.Y + Nav3.RibbonControl.Height
Dim p As New System.Drawing.Point(x, y)
If e.Button = Windows.Forms.MouseButtons.Right Then
Me.PopupMenu1.ShowPopup§
End If
End Sub
image when not in the header section with right click