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

Preserving selection when context menu pops up

Thread ID:

Created:

Updated:

Platform:

Replies:

8465 Nov 6,2003 07:15 PM UTC Nov 6,2003 07:56 PM UTC WinForms 3
loading
Tags: GridControl
Peter Zaborski
Asked On November 6, 2003 07:15 PM UTC

Like the subject says, what's the recommended way to preserve the selection state of a GridDataBoundGrid if the user clicks on a cell contained in the currently selected range in a way to cause the context menu to pop up? The default settings seem to clear the selection, unlike XL and other programs. Thanks for any hints.

Administrator [Syncfusion]
Replied On November 6, 2003 07:19 PM UTC

Try setting this property. this.gridDataBoundGrid1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left; It turns off selections with the right-click.

Peter Zaborski
Replied On November 6, 2003 07:50 PM UTC

Hi Clay, thanks for the quick reply. Close but not quite 100%. In XL, right clicking inside the selected range brings up the context menu. But right clicking outside of the selected range clears the selection (or selects the clicked on cell). Is this achievable without mouse event handling? -Peter

Administrator [Syncfusion]
Replied On November 6, 2003 07:56 PM UTC

No, there is no property that yields this behavior. You could probably use grid.SelectionsChanging instead of a mouse event, but it still would be an event needed.

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

;