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 : Nov 16th 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:

Created:

Updated:

Platform:

Replies:

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

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


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.





Regards,
Jisha


CONFIRMATION

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.

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

;