GridView in a GridView

C

Carlos Albert

Hello everybody

I'm working (or trying to, at least) with a gridview within another
gridview, and the 'child' gridview is related with the 'parent' from a
field.

With a simple gridview I used to work all by codebehind (mostly because I
get the XML from some librarys), using gridview.databind, but now I don't
know how to populate the second gridview and relate the fields...

Anyone could give me a hint?

Tnx!
 
A

agapeton

This shouldn't really be a problem using the new data source controls.

Otherwise, you will probably haveto play with the FindControl("Id")
guy. Your code will probably look like

((GridView)gvParent.Controls[0].Controls[n].Controls[1].Controls[1].FindControl("gvChild")).DataSource...

Thank goodness for the new controls...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top