title: Devexpress datagrid and form context menu
body: <p>When i right click on grid row it shows context menu strip assigned to it for few second and then replace it with form's context menu. How can i make sure that grid's context menu strip remain visible if click is on grid.</p>
  
  <p>Code:</p>
  
  <pre><code> private void Form1_Load(object sender, EventArgs e)
      {
          Matches();
          DataTable dt = new DataTable();
          dt.Columns.Add("Test", typeof(string));
          dt.Rows.Add("A");
          dt.Rows.Add("A");
          dt.Rows.Add("A");
          dt.Rows.Add("A");
          dt.Rows.Add("A");
          dt.Rows.Add("A");
          ContextMenuStrip ctsForm = new ContextMenuStrip();
          ctsForm.Items.Add("Form");
         ctsForm.Opening+=ctsForm_Opening;
          ctsGrid.Items.Add("Grid");
          gridControl1.DataSource = dt;
  
          gridView1.PopupMenuShowing+=gridView1_PopupMenuShowing;
          this.ContextMenuStrip = ctsForm;
  
      }
  
      private void ctsForm_Opening(object sender, CancelEventArgs e)
      {
  
  
      }
  
      private void gridView1_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e)
      {
          GridView view = (GridView)sender;
          GridHitInfo hitInfo = view.CalcHitInfo(e.Point);
          if (hitInfo.InRow)
          {
              view.FocusedRowHandle = hitInfo.RowHandle;
              ctsGrid.Show(view.GridControl, e.Point);
          }
      }
  </code></pre>