Webgrid displaying hierarchical data by databinding in code behind

4 replies. Last post: January 21, 2010 2:55 PM by Shawn Craig
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Do you have an example of how to bind to the child grid in the code behind page.  I have 2 different data sets, one for the parent table and one for the child table in the webgrid.  How do I bind to the child table in the code behind page?  This is what I have for the parent table it works, but the child table is not loaded...

 

WebGrid1.DataSource = LoadData();

 WebGrid1.DataBind();

All times are GMT -5. The time now is 11:50 PM.
Previous Next