Binding hierarchical data

N

neverstill

So I thought I had a solution to my problem using DataRelations with the
DataSet.

I need to display hierarchical data. I have a DataList nested into another
DataList. My datasource is a DataSet with 2 tables and a couple of
DataRelations.
I thought that I could catch the items as they were bouind in
ItemDataBound(), then from there get the ChildRows() and bind that to the
nested DataList. Problem is, when I get the DataItem from ItemDataBound, it
is a DataRowView.

So.... how do I do this? How do I get the childRows()? I tried
CreateChildRows(), but it says I don't have a relation...

Any ideas?
 
N

neverstill

I also tried this:
childRows = dItem.Row.GetChildRows("Categories");



It doesn't work either. I don't get it
 

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

Staff online

Members online

Forum statistics

Threads
473,767
Messages
2,569,571
Members
45,045
Latest member
DRCM

Latest Threads

Top