Binding hierarchical data

Discussion in 'ASP .Net' started by neverstill, Dec 8, 2003.

  1. neverstill

    neverstill Guest

    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?
     
    neverstill, Dec 8, 2003
    #1
    1. Advertising

  2. neverstill

    neverstill Guest

    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?
    >
    >
    >
     
    neverstill, Dec 8, 2003
    #2
    1. Advertising

  3. neverstill

    neverstill Guest

    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?
    >
    >
    >
     
    neverstill, Dec 8, 2003
    #3
  4. neverstill

    Anders Borum Guest

    LOL! :)

    --
    venlig hilsen / with regards
    anders borum
    --
     
    Anders Borum, Dec 9, 2003
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. PontiMax

    Updating hierarchical data

    PontiMax, Dec 17, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    391
    PontiMax
    Dec 17, 2003
  2. Jordan
    Replies:
    2
    Views:
    2,538
    Jordan
    Feb 10, 2004
  3. Kent Boogaart

    Binding to Hierarchical Data Source (FAQs)

    Kent Boogaart, Feb 1, 2006, in forum: ASP .Net
    Replies:
    5
    Views:
    2,609
  4. Iain

    Hierarchical binding in a WebServer Control with templates

    Iain, Jun 15, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    139
    John Saunders
    Jun 15, 2004
  5. JcFx
    Replies:
    0
    Views:
    281
Loading...

Share This Page