By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,271 Members | 1,379 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,271 IT Pros & Developers. It's quick & easy.

Binding hierarchical data

P: n/a
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?

Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


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

It doesn't work either. I don't get it
"neverstill" <sk************@yahoo.com> wrote in message
news:e%****************@TK2MSFTNGP12.phx.gbl...
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?

Nov 18 '05 #2

P: n/a
Problem solved. Typo. :(
sorry.

"neverstill" <sk************@yahoo.com> wrote in message
news:e%****************@TK2MSFTNGP12.phx.gbl...
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?

Nov 18 '05 #3

P: n/a
LOL! :-)

--
venlig hilsen / with regards
anders borum
--
Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.