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.
Unfortunately, activation email could not send to your email. Please try again.

Using Context Menu with multiple selected rows in GridDataBoundGrid control

Thread ID:





78849 Jan 5,2009 07:17 AM Jan 6,2009 04:34 AM Windows Forms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 5, 2009 07:17 AM


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.


Jisha Joy [Syncfusion]
Replied On January 6, 2009 04:34 AM

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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.