Context Menu

In using the grid with a ContextMenuStrip, the context menu does appear with the right click except it also continues to select the row wherever I right clicked. How do I prevent that selection from occuring?

2 Replies

AD Administrator Syncfusion Team February 1, 2006 06:55 AM UTC

Hi, Setting the this.gridControl1.SelectCellsMouseButtonsMask = ((System.Windows.Forms.MouseButtons)((System.Windows.Forms.MouseButtons.Left | System.Windows.Forms.MouseButtons.Middle))); will prevent the row from getting selected when it is right clicked. Regards, Calvin.


VA va February 2, 2006 03:52 PM UTC

Oh! I missed it and this was obvious. Thank you.

Loader.
Up arrow icon