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.

Disabeling multiple row selection while draging the mouse

Thread ID:

Created:

Updated:

Platform:

Replies:

5820 Jul 18,2003 08:37 AM Jul 18,2003 10:27 AM Windows Forms 1
loading
Tags: GridControl
Olivier Choquette
Asked On July 18, 2003 08:37 AM

i'm using a GridControl which behaves much like a listbox. The user can select a range of rows using the shift key and he can also select multiple individual rows with the ctrl key. I've set the folowing properties : - ListBoxSelectionMode = MultiExtended; - AllowSelection = alphablent, row, multiple, shift, keyboard; - ControllerOptions = ClickCells, SelectCells; Is there a way to disable the multiple selection then the user clicks on a cell and drags the mouse and have it behade like SelectionMode.One instead? Olivier

Administrator [Syncfusion]
Replied On July 18, 2003 10:27 AM

You can handle the SelectionChanging event and cancel it if the grid already has selections and e.range is not empty. Haven't actually tried this in the ListBoxSelectionMode so ther emay be something I am overlooking, but I think it should work.

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.

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.

;