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

Row selection highlighting issue

Thread ID:

Created:

Updated:

Platform:

Replies:

6876 Sep 2,2003 01:34 PM Sep 3,2003 08:44 AM Windows Forms 2
loading
Tags: GridControl
Charles Carlin
Asked On September 2, 2003 01:34 PM

When I select a row I change the row height based on the data in the row (in the currentcellmoving event). If the row is say 4X normal row hight and then I select another row which stays at 1X it will highlight three extra rows. So whatever the last row selecteds row height is the highlighting will take up that many rows (minimum). If it is more it will highlight the entire row appropriately. Any ideas, workarounds, etc...

Administrator [Syncfusion]
Replied On September 2, 2003 03:28 PM

I see the behavior when I click the row header of row 3. When the row shrinks, the mousedown and mouseup may be on different rows which normally signals a selection. To avoid this, the attached sample sets a flag when shrinking the row height, and cancels any selections in SelectionChanging when this flag is set.

Charles Carlin
Replied On September 3, 2003 08:44 AM

Well that didn't completely do the trick but it sent me in the right direction. By adding a check that the range top and bottom were not 0 (not sure why they would be) and only cancel if they were not it works.

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.

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

;