I created my own popup menu on the DevExpress grid control and now when I right-click on the grid, it always show my popup menu.
What I want is that
1 - When clicking on the grid header (or group area pane), it shows the default grid popup menus such as Sort Ascending, Sort Descending, Clear All sorting, etc.
2 - I want to show my popup only the in the grid area (beside the first row) but at the moment, it just shows everywhere.
I try the following codes and it just does not work well at all and before showing popup it blinks two or three times before showing
private void grdViewList_MouseDown(object sender, MouseEventArgs e)
{
if (e.Button == System.Windows.Forms.MouseButtons.Right)
{
Point clickPoint = grdSelectDataset.PointToClient(Control.MousePosition);
var hitInfo = grdViewList.CalcHitInfo(clickPoint);
if (hitInfo.InRowCell)
{
pmDataViewer.ShowPopup(barManager1, new Point(e.X, e.Y));
}
}
}