Hi Imaran,
Thanks for using Syncfusion product.
By default, GridGroupingControl does not have the on demand support for flat and child table. But, you can generate the child data while expanding the record using RecordExpanding event. Please refer the following code example and the sample,
Code example
this.gridGroupingControl1.Table.RecordExpanding += Table_RecordExpanding;
private void Table_RecordExpanding(object sender, Syncfusion.Grouping.RecordEventArgs e)
{
DataRow dr = childTable.NewRow();
dr[0] = 0;
dr[1] = string.Format("F2_{0}", 0);
dr[2] = string.Format("F2_{0}", 0);
dr[3] = 0;
childTable.Rows.Add(dr);
childTable.AcceptChanges();
} |
If you want to use the different child tables for every record, you could implement the List collection with ITypedList. Please refer our dashboard sample in following location,
Installed Sample location: <Installed_Location>\Syncfusion\EssentialStudio\<Version_Number>\Samples\Windows\Grid.Grouping.Windows\samples\Data Sources\Nested Child-Collection Demo\cs
Let us know whether this helps also if you need any further assistance on this.
Arulraj A