We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Using Context Menu with multiple selected rows in GridDataBoundGrid control

Hi,

I need to delete the selected multiple rows in the GridDataBoundGrid by using a Delete option in the context menu. I tried to achieve this in the MouseDownEvent, detecting a right click and get a contextmenu with the events initialized and display it.

When there are multiple selections, when i do a right click, the selection gets cleared.

I need some help in implementing this.

Thanks,
Priya


1 Reply

JJ Jisha Joy Syncfusion Team January 6, 2009 09:34 AM UTC

Hi Priya,

There is a property that controls this behavior of which mousebutton can select cells. Try







this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left;








This should prevent the right button from affecting any selections.





Hope that helps.





Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon