Hi Ravi,
Thank you for posting query to us.
You can loop through the records of the parent table and make the ChildTable expanded. Then loop through the records of the ChildTable and make the GrandChildTable collpased.
Please refer this code snippets:
this.gridGroupingControl1.Table.ExpandAllRecords();
foreach (Record r in this.gridGroupingControl1.Table.Records)
{
if (r != null)
{
r.NestedTables["ChildTable"].IsExpanded = true;
foreach (Record rec in r.NestedTables["ChildTable"].Records)
{
if (rec != null)
{
rec.NestedTables["GrandChildTable"].IsExpanded = false;
}
}
}
}
Please refer the sample which implements the above said feature:
http://websamples.syncfusion.com/samples/Grid.Windows/F69443/main.htmKindly let us know if you need any further assistance.
Thank you for using Syncfusion Products.
Best Regards,
Jeba.