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

How do I change the current selection?

Thread ID:





4381 May 9,2003 12:51 PM UTC May 9,2003 01:09 PM UTC Windows Forms 1
Tags: GridControl
Maxim Software Systems
Asked On May 9, 2003 12:51 PM UTC

I want to be able to restrict the user to selecting multiple cells in one column only (i.e. to only be able to make vertical selections of one or more cells). How do I go about doing this? All the objects and properties that appear to be the obvious thing to modify (like MyGrid.Selections.Ranges.ActiveRange) are read-only.

Maxim Software Systems
Replied On May 9, 2003 01:09 PM UTC

Nevermind. Putting this line of code: If e.Range.Left <> e.Range.Right Then e.Cancel = True into the SelectionChanging event seems to do the trick.


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.

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