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.

How do I change the current selection?

Thread ID:

Created:

Updated:

Platform:

Replies:

4381 May 9,2003 08:51 AM May 9,2003 09:09 AM Windows Forms 1
loading
Tags: GridControl
Maxim Software Systems
Asked On May 9, 2003 08:51 AM

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 09:09 AM

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.

CONFIRMATION

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.

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.

;