right-click menu


Hi,

I'd like the user to be able to right-click on a range of cells and bring up a menu that has copy and paste options. I was wondering how to bring up the right-click menu and how to keep the range of cells highlighted while the user is choosing from the options. Thanks!

1 Reply

HA haneefm Syncfusion Team July 11, 2007 05:33 PM UTC

Hi code12345,

There is an Options property setting that controls which mouse buttons select/unselect cells. The default is for either button to select/unselect cells. To only allow the left button to select/unselect cells, try:

//For GridControl/GridDatabound control:
this.grid.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;

//for showing the menu when right mouse button is clicked.
this.grid.ContextMenu = this.contextMenu1;

Best regards,
Haneef

Loader.
Up arrow icon