Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Binding hierarchical data

Reply
Thread Tools

Binding hierarchical data

 
 
neverstill
Guest
Posts: n/a
 
      12-08-2003
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?



 
Reply With Quote
 
 
 
 
neverstill
Guest
Posts: n/a
 
      12-08-2003
I also tried this:
childRows = dItem.Row.GetChildRows("Categories");



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


"neverstill" <> wrote in message
news:e%23N$...
> 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?
>
>
>



 
Reply With Quote
 
 
 
 
neverstill
Guest
Posts: n/a
 
      12-08-2003
Problem solved. Typo.
sorry.



"neverstill" <> wrote in message
news:e%23N$...
> 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?
>
>
>



 
Reply With Quote
 
Anders Borum
Guest
Posts: n/a
 
      12-09-2003
LOL!

--
venlig hilsen / with regards
anders borum
--


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding to Hierarchical Data Source (FAQs) Kent Boogaart ASP .Net 5 02-02-2006 04:55 PM
Complex data binding question, binding child objects of a custom collection. JcFx ASP .Net Datagrid Control 0 06-01-2005 04:01 PM
Hierarchical binding in a WebServer Control with templates Iain ASP .Net Building Controls 1 06-15-2004 04:49 PM
Data Binding - using inline code vs. functions vs. straight binding Jordan ASP .Net 2 02-10-2004 08:32 PM
Updating hierarchical data PontiMax ASP .Net 0 12-17-2003 10:28 AM



Advertisments