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

How to set different childtable

Thread ID:





94024 Apr 19,2010 02:09 AM UTC Apr 28,2010 06:15 AM UTC ASP.NET Web Forms (Classic) 3
Tags: Grouping
Asked On April 19, 2010 02:09 AM UTC

how to set different childtable
1.childtable have different column ,and have different cell type.
2,ParentTable's data must come from DataTable,not come from SQL
3,childtable's data must come from DataTable,not come from SQL.
And ,the different childtable must hvae differnt DataTable.
for example :
childTalbe1: name number age
Jack 1 24
Rose 2 23
Jime 3 26
childTable2: Animal high weight number
dog 1.11 20 1
mokey 2.22 30 2
cow 3.33 30 3

Jisha Joy [Syncfusion]
Replied On April 21, 2010 09:55 AM UTC


You could refer the following sample from the sample browser to achieve the desired behavior.

C:\Syncfusion\\Windows\Grid.Windows\Samples\2.0\Data Bound\GDBG Drop Grid Demo

This sample displays hierarchical data using nested drop grids. To specify a relationship between a parent table and a child table, you must pass an event handler for the event QueryFilterString. Your event should specify the FilterString that defines the relationship between the parent table and the child table.

Please try this and let me know if this helps.


Replied On April 27, 2010 01:46 AM UTC

sorry, that demo is hard to find what i need .so ,can you tell me a simple demo.And ,request: useing GridGroupinControl, several different datatables ,not use something about XSD file,not use something about SQL.

please hurry up!
thank you very much!!!

Jisha Joy [Syncfusion]
Replied On April 28, 2010 06:15 AM UTC


By default it is not possible to have different child tables of parent rows. One thing you could achieve the desired behavior by establishing multiple relations from parent to child and hide the unnecssary tables from the parent row.

The ChildTable can be made hidden when it has no records to show up, by using a CustomEngine. Also you need to handle QueryCellStyleInfo event of the GridGroupiingControl to hide the +/- sign. Please refer the following KB article that shows how to hide the ChildTable that doesn't have any records to show up in GridGroupingControl.

KB link:


Please use the following link for the sample:




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