I have a GridGrouppingControl and a ContextMenu on it.
I want to do the following functionality:
user select some range, then right click on the table and choose some menu item there.
But now when I right click on the table, selection disappears :(
Yeah, I can select range holding the right button, but I think this is a significant lack of usability.
So, how can I keep range selection on right click?
Thanks!
AD
Administrator
Syncfusion Team
July 26, 2006 04:54 AM UTC
Hi Lev,
Please set the following property to control the behavior of mousebuttons selecting cells.
this.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
This will prevent the right mouse button from affecting any selections.
Thanks for using Syncfusion Products.
Regards,
Rajagopal
AD
Administrator
Syncfusion Team
July 26, 2006 04:56 AM UTC
Hi Lev,
Try setting the SelectCellsMouseButtonsMask property to turn off the Right mouse click selection. Please find the code snippet below.
this.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;
Let me know if this helps.
Regards,
Haneef
AD
Administrator
Syncfusion Team
July 26, 2006 10:23 AM UTC
It really works :) Great thanks!