User Profile & Activity

Robert Pehrson Member
Page
of 2

Hi Lily,

Thanks for your reply - happily I've now got past the exception in RenderControl.

I've been working from the Hierarchical_Unbound_Programmatic tutorial, and a straight run through works fine.  The problem arises when I try to integrate into our project environment, building the control on demand and picking up the data structure and data from our data objects - it was hard to tell what was causing the crash in RenderControl.  It turns out that I was giving more values in the data array (table.Rows.AddRange) than there were columns in the table; once the right number of values are provided, I get through RenderControl OK. 

Regards,

Robert

Posted: March 15, 2011 5:43 AM

Thanks, Yudi, I see it now - the ChildTables property of the root table is a WebGridTableCollection that can contain more than one child table.  The children of each parent row can then be from any of these child tables (and you can even take a row's children from multiple tables!)  I've adapted the tutorial to show this and it's looking good.

All times are GMT -5. The time now is 9:34 PM.
Previous Next