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

Iterating through the child tables of a parent table

Thread ID:

Created:

Updated:

Platform:

Replies:

33743 Aug 25,2005 10:31 AM UTC Aug 25,2005 11:05 AM UTC WinForms 1
loading
Tags: Grouping
Thabo
Asked On August 25, 2005 10:31 AM UTC

hi, I''m looking for sample code to iterate through the the child tables of a parent table. If i have a parent table that has 4 child tables, i would like to know how you iterate through all the child tables. Regards David

Administrator [Syncfusion]
Replied On August 25, 2005 11:05 AM UTC

I am not sure I understand what you mean by child tables. If you mean expanding a record and seeing multiple nested tables on the same level, then you can use the gridRecord.NestedTables collection to iterate through these child tables. If you mean a series of heirarchical parent child tables, then you can use gridRecord.ParentChildtable.NestedTable[0].ChildTable to get at the inner level. You would have to do this recursively to see nested child tables. //get a record GridRecord rec = this.gridGroupingControl1.Table.Records[0] as GridRecord; //show its child table Console.WriteLine( rec.NestedTables[0].ChildTable.Name); //show its grandchildtable Console.WriteLine(rec.NestedTables[0].ChildTable.Records[0].NestedTables[0].ChildTable.Name);

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.

Please sign in to access our forum

or the page will be automatically redirected to 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

;