I have a grid that I only ever want the user to be able to select a single row on, so the TypeSelectRow is set to Single and I cancel the SelectionDrag event. On the whole this works, except that if the user clicks on a row and then drags without releasing the mouse button it is possible to select multiple rows, which is undesired behaviour.
I looked at selection strategy filters and opted to use SelectionStrategySingle, this has had no effect - the user can still click, hold and drag to select rows.
Is there a solution for this?
Thanks
Ok, I solved this now..
the selection setup wasn't the problem - by default a grid gets an Active Row Appearance that sets the background colour to "Highlight" and the foreground colour to "HighlightText" - the effect of this is that the row appears to be selected when its not. Hopefully may be of help to others out there.
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.
Also... you should not have to cancel the SelectionDrag event.