473,385 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Binding hierarchical data

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
3 1439
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
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
LOL! :-)

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

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Greg Dunn | last post by:
I have two tables in a parent-child relationship. Details on the tables are as shown below: Table1 ------- Item_ID (primary key) Item_Owner (foreign key to Table2) Table2 -------
5
by: Greg Dunn | last post by:
I have two tables in a parent-child relationship. Details on the tables are as shown below: Table1 ------- Item_ID (primary key) Item_Owner (foreign key to Table2) Table2 -------
0
by: | last post by:
I have a question about spawning and displaying subordinate list controls within a list control. I'm also interested in feedback about the design of my search application. Lots of code is at the...
2
by: csharpula csharp | last post by:
Hello, I am trying to bind tree view. I got an object which is representing the tree nodes (hierarchical). How can I implement this? Thanks! *** Sent via Developersdex...
2
by: csharpula csharp | last post by:
Hello, I am trying to bind tree view. I got an object which is representing the tree nodes (hierarchical). How can I implement this? Thanks! *** Sent via Developersdex...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.