Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
185
Runtime Exception: No child grid script descriptors are available!
posted

 <ig:WebHierarchicalDataGrid ID="whdg" runat="server" Height="350px" Width="400px" DataKeyFields="ID"></ig:WebHierarchicalDataGrid>

DataTable dtContract = new DataTable("Contract");
            dtContract.Columns.Add("ID");
            dtContract.Columns.Add("CName");

            DataRow drContract;
            drContract = dtContract.NewRow();
            drContract[0] = "11";
            drContract[1] = "Origin";
            dtContract.Rows.Add(drContract);

DataTable dtPipe = new DataTable("Pipe");
            dtPipe.Columns.Add("ID");
            dtPipe.Columns.Add("PName");

            DataRow drSwp;
            drSwp = dtPipe.NewRow();
            drSwp[0] = "11";
            drSwp[1] = "SWP";
            dtPipe.Rows.Add(drSwp);

DataSet ds = new DataSet();
            ds.Tables.Add(dtContract);
            ds.Tables.Add(dtPipe);

ds.Relations.Add("ID", ds.Tables["Contract"].Columns["ID"], ds.Tables["Pipe"].Columns["ID"]);

            whdg.DataSource = ds;
            whdg.DataBind();

ERROR: 

 

Parents Reply Children