Hi Adrian,
Thanks for using Syncfusion Products.
Query 1 : "I have used the online samples that came with the installation to setup a 3-Level Hierarchy grid. However, when I expand the parent and child tables I see columns that I don't want to see. I thought that I could hide the columns when the row was expanded, but the sample code below does not work"
Your requirement to hide the childtable columns dynamically can be achieved by removing the visible columns from the child table in the recordexpanded event. Please refer the below code snippet.
[Codebehind-C#]
protected void GridGroupingControl1_RecordExpanded(object sender, Syncfusion.Grouping.RecordEventArgs e)
{
foreach (GridNestedTable nt in e.Record.NestedTables)
{
if (nt.ChildTable.Name == "MyChildTable")
{
nt.ChildTable.ParentTableDescriptor.VisibleColumns.Remove("ParentID");
}
else if (nt.ChildTable.Name == "MyChildTable1")
{
nt.ChildTable.ParentTableDescriptor.VisibleColumns.Remove("ChildID");
}
}
}
For your convenience, we have created a sample and the same can be downloaded from the following link.
Hierarchy-2136685208.zipPlease let us know your concerns.
Regards,
Sridhar.N