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.

Expand exclusive in Hierarial Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

6905 Sep 4,2003 05:24 AM Sep 9,2003 02:42 AM Windows Forms 3
loading
Tags: GridControl
Asaf Segal
Asked On September 4, 2003 05:24 AM

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 10:16 AM

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 8, 2003 09:00 PM

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 02:42 AM

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.

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.

;