BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Jacob,
Thanks for your patience.
We suggest you to set datasource for child grid initially to avoid your issue. Please refer the below code snippets.
[Index.cshtml]
.ChildGrid(child =>
{
child.ChildGridTemplate(Html.Syncfusion().Grid<System.Data.DataRow>("ChildGrid_${OrderID}")
.Datasource((IEnumerable<System.Data.DataRow>)ViewData["data"])
.Caption("OrderDetails Grid")
.AutoFormat(Skins.Marble)
.EnablePaging()
.Mappers(map =>
{
map.Action("ChildGrid", new { OrderID = "${OrderID}" });
})
.ToChildGridTemplate());
})
[HomeController.cs]
public ActionResult Index()
{
ViewData["data"] = GetTable1(GetTable().Rows[0]["OrderID"].ToString()).AsEnumerable();
return View(GetTable());
}
For your convenience, we have prepared a simple sample to demonstrate this and the same can be downloaded from the below link.
Sample: DataTable_Hierarchygrid.zip
Could you please check the above sample and let us know if this is helpful.
Please let us know if you need further assistance.
Regards,
Balamurugan A.S