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

Disable row multi-select on mouse move

Thread ID:





105445 Oct 25,2012 06:43 PM UTC Oct 31,2012 04:21 PM UTC WPF 2
Tags: GridControl
Michael Philbrick
Asked On October 25, 2012 06:43 PM UTC

I am using the following settings:

AutoFocusCurrentItem = false;
AllowSelection = GridSelectionFlags.Row;
ListBoxSelectionMode = GridSelectionMode.MultiExtended;

When DoDragDrop in PreviewMouseMove is called the selection of additional rows stops and it is placed in drag mode. If DoDragDrop is not called then moving the mouse selects additional rows.

I would like the selection mode to function like this all the time -- in other words, I never want the user to be able to select multiple rows by dragging the mouse. I still want the user to be able to select multiple rows by a combination of Ctrl-MouseDown and Shift-MouseDown.

How do I achieve this?

Michael Philbrick
Replied On October 25, 2012 07:31 PM UTC

More information ...

I have also tried AutoFocusCurrentItem = true and there does not seem to be a difference.

I noticed that even though multiple rows are highlighted when the mouse is clicked and is moved the selection list does not change. In fact, when I set ListBoxSelectionMode = GridSelectionMode.One I noticed that it took two clicks to update the selection.

So, if these rows are being "highlighted" when moving the mouse, what is the point if they are not being selected? I would rather have the grid only highlight items that are actually in the SelectedItems list. It seems very confusing.

Rajasekar G [Syncfusion]
Replied On October 31, 2012 04:21 PM UTC

Hi Michael,

We updated the solution for this query in incident #100484


Raja sekar.G


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