I need to have multiple child grids in GridGroupingControl.

Hi,

I have attached an image of what I am looking for.

I was able to get one child grid, but I am looking for 3 child grids.
With each child grid having search functionality and few custom columns.

Thanks in advance
Aditya



Sample_98818c0.zip

3 Replies

JJ Jisha Joy Syncfusion Team October 14, 2008 07:30 AM UTC

Hi Aditya,

Thank you for using Syncfusion products.

You can have multiple childs for one parent table by creating and adding the relations.

Below is the code snippet:


DataSet ds = new DataSet();
ds.Tables.AddRange(new DataTable[] { parentTable, childTable, grandChildTable });

ds.Relations.Add(new DataRelation("ParentToChild", ds.Tables[0].Columns["parentID"], ds.Tables[1].Columns["ParentID"]));
ds.Relations.Add(new DataRelation("ChildToGrandChild", ds.Tables[0].Columns["parentID"], ds.Tables[2].Columns["ParentID"]));

this.gridGroupingControl1.DataSource = ds.Tables[0];


Here is a sample that illustrates the same for your reference:


http://websamples.syncfusion.com/samples/Grid.Windows/Grid_WF_GGCMultiChildTableI48002/main.htm

Please let me know if you need any further assistance.

Regards,
Jisha




AP Aditya Pawar October 14, 2008 01:48 PM UTC

Thanks for the reply.

I was able to get multiple child grids.

But I am not able to have template column in the child grid, like having a check box or a link button.

Any help would be great.

Thanks
Aditya Pawar



RS Rajarajeswari S Syncfusion Team October 28, 2008 05:05 PM UTC

Hi Aditya,

Thanks for using Syncfusion products.

Your DirectTrac Incident # 50761 has been updated. Could you please follow-up with that incident to get more information on this.

Regards,
Raji


Loader.
Up arrow icon