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

Tuyrn off range select in Grid

Thread ID:





72639 Mar 29,2008 03:21 PM UTC Mar 31,2008 11:42 PM UTC WinForms 2
Tags: GridControl
Asked On March 29, 2008 03:21 PM UTC

Hi, how can I turn off range select in the GridControl?

Im trying to make my grid so you can only select one whole row, and if you drag the mouse with the button down, it will just change which row is selected

But when the mouse is dragged its just extending the block of selected cells


Administrator [Syncfusion]
Replied On March 31, 2008 08:22 PM UTC

Hi Carpii,

To turn off range select in the GridControl you need to handle SelectionChanging event check the reason for raising the event by
use of e.Reson property and if the reson is MouseMove cancel the event.Please refer the below code snippet.

void gridControl1_SelectionChanging(object sender, GridSelectionChangingEventArgs e)
if (e.Reason==GridSelectionReason.MouseMove)
e.Cancel = true;

Please let me know me know if you need further assistance
Best regards,

Replied On March 31, 2008 11:42 PM UTC

Thankyou Johnson, thats very useful.
I had already tried with e.cancel, but I was missing the bit how to detect mouse drag



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

or the page will be automatically redirected to 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