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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Row selection highlighting issue

Thread ID:





6876 Sep 2,2003 05:34 PM UTC Sep 3,2003 12:44 PM UTC WinForms 2
Tags: GridControl
Charles Carlin
Asked On September 2, 2003 05:34 PM UTC

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 07:28 PM UTC

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 12:44 PM UTC

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.


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

Live Chat Icon For mobile
Live Chat Icon