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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GGC Dynamic Levels

Thread ID:





54937 Jan 19,2007 06:23 PM UTC Jan 19,2007 10:25 PM UTC WinForms 1
Tags: GridControl
Nathan Trost
Asked On January 19, 2007 06:23 PM UTC


I have a datatable that is a self referencing table - i.e. Has a column named "ID" and column named "parentID". There is a relationship that is setup between the columns. Essentially a treeview is what I am trying to achieve.

Problem #1 - All rows are displayed. Is there anyway I can have only the top level rows show in the top level. All top level rows have a null "parentID".

Problem #2 - There are only two levels. i.e. I have top level row with "ID" of 1, then another row has a "parentID" referencing 1 that has an "ID" of 2. Now even if I have another row referencing "ID" 2 in its "parentID" that level is never shown. I need to have infinite levels.

I have gone through every sample you provide, including the treegrid samples. None of them are exactly what I am looking for. I have also spent countless hours on the board and not found what I am looking for. I would like to have the GGC do as much work for me as possible.


Administrator [Syncfusion]
Replied On January 19, 2007 10:25 PM UTC

Hi Nathan,

The Manual Relation-Masterdetails sample demonstrates how to manually specify the master-detail relations between three separate tables that have primary key and foreign key columns in common. You can manually specify relations in the grouping engine. The DataSet does not need to have any DataRelations. This is the same approach that should be used if you want to set up relationships between independent IList collections.

Here is a sample

Best Regards,


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