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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disabeling multiple row selection while draging the mouse

Thread ID:





5820 Jul 18,2003 12:37 PM UTC Jul 18,2003 02:27 PM UTC WinForms 1
Tags: GridControl
Olivier Choquette
Asked On July 18, 2003 12:37 PM UTC

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


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

Live Chat Icon For mobile
Live Chat Icon