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

Expand exclusive in Hierarial Grid

Thread ID:





6905 Sep 4,2003 09:24 AM UTC Sep 9,2003 06:42 AM UTC WinForms 3
Tags: GridControl
Asaf Segal
Asked On September 4, 2003 09:24 AM UTC

Hi I need to expand exclusivly an hierarial grid: When I expand a row I want all the others to be closed. ( In my configuration the clicked row is selected ) I tryed to collapse all rows in Expanding event - this made an expand in a wrong row. I tried to collapse the previous expanded row In Expanded event, this made the selected row point to the place that the Expanded row was before the collapse ( there is a call to moveTo somewhere in the mouse up handling ) Is there a way to achive the behaviour I need ?

Administrator [Syncfusion]
Replied On September 4, 2003 02:16 PM UTC

I do not know of a good way to do this. Attached is a try at it, but it uses a timer to position the current cell in one case where it was being reset the way you described.

Asaf Segal
Replied On September 9, 2003 01:00 AM UTC

Thanks for the sample. Is there a way to avoid the flickering when selectibg the row with the timer event ?

Administrator [Syncfusion]
Replied On September 9, 2003 06:42 AM UTC

I think most of the flickering is being caused by the currentcell being positioned and then moved. There is a DrawCurrentCellFrame event that you can use to avoid drawing the current cell frame. So, if you set a flag when you do not want it drawn, and then cancel this event based on this flag, then you might be able to avoid some of the flicker. But I am not sure you will be able to remove all flickering without a lot of tickering to handle things perfectly. Attached is a rough try at doing this.


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