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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Using Context Menu with multiple selected rows in GridDataBoundGrid control

Thread ID:





78849 Jan 5,2009 12:17 PM UTC Jan 6,2009 09:34 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On January 5, 2009 12:17 PM UTC


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 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.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon