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. Image for the cookie policy date
close icon

Disabeling multiple row selection while draging the mouse

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

1 Reply

AD Administrator Syncfusion Team July 18, 2003 02:27 PM UTC

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.

Loader.
Live Chat Icon For mobile
Up arrow icon