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.

Hierarchy Issues

Thread ID:

Created:

Updated:

Platform:

Replies:

24265 Jan 31,2005 12:55 PM Feb 1,2005 10:32 AM Windows Forms 4
loading
Tags: GridControl
Evan
Asked On January 31, 2005 12:55 PM

I have two tables that I want to show in parent/child rows in one grid. Both tables are backed by a DataSource which always contain more columns than I want to show. This is not negotiable. Parent DataSource contains columns A, B, C, D, E, F and Child DataSource contains columns A, C, D where A is the unique ID. In the grid, I want to hide columns A, E, F and show columns B, C, D. The child rows should just have an empty cell for column B. Please let me know the best approach to show this data. I have the latest version of the Essential Suite.

Evan
Replied On January 31, 2005 12:56 PM

One more thing...I need it to be really really fast :)

Administrator [Syncfusion]
Replied On January 31, 2005 02:02 PM

Take a look at the \Syncfusion\Essential Suite\3.0.1.0\Windows\Grid.Windows\Samples\DataBound\Hierarchical\ExpandGrid sample. You can use the level.LayoutColumns to control the columns in each hierarchy. (You can also get teh tree look as in this sample if this is what you want:\3.0.1.0\Windows\Grid.Windows\Samples\DataBound\Hierarchical\GDBGTreeLines)

Evan
Replied On February 1, 2005 08:11 AM

I getting a little further. I''m doing one thing that is different than this example that I''m having a little trouble with. I have a button that refreshes the underlying DataSource. Sometimes there is one table and sometimes there are two tables in the DataSet. If there are two, I create the relationship. If there is only one, I just show the one table with no relationships. I start with one table, everything is good. I click the button so that there are two tables, and everything looks ok. When I go back to one table, the first column mysteriously disappears from my grid. I looked at all internal variables in the debugger, and all looks good. Any ideas?

Evan
Replied On February 1, 2005 10:32 AM

I may have figured it out. I think somehow behind the scenes, when the relationship is cleared/reset, the first column is removed/hidden which is supposed to be the plus/minus column. In my situation, there is no more parent/child relation so this column is not there anymore. The first column that the user is supposed to see is the one being removed/hidden.

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.

;