Repeater

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?SHV0dHk=?=

    Repeater

    My goal is create a hierarchial dataset with parent child relationship. What
    I thought would be an easy task has turned out to be quite difficult. In the
    financial world you see many grids with parent/child relationship. However,
    my search of the web has not reveal anything that can easily be done.

    I tried the nested gridview. Now I am looking into the Repeater. Is it
    possible to have the parent repeater display more than one column from an
    sqldatasource? I am looking to creat something like this:

    Company Col1 Col2 Col3 .....
    AAAAA 20 40 60
    Child1 15 22 43
    Child2 5 18 17

    BBBBB 10 15 20
    Child1 2 11 9
    Child2 8 4 11

    I have been working with this for weeks as a beginner. Keep getting turned
    around. Any ideas? thanks


    --
    Hutty
  • sloan

    #2
    Re: Repeater

    If you have a known number of levels in the hierarchy, you can create a
    "nested repeater".
    Just google it.

    If you have a unknown number, look at implementing your own version of
    Exposes a node of a hierarchical data structure, including the node object and some properties that describe characteristics of the node. Objects that implement the IHierarchyData interface can be contained in IHierarchicalEnumerable collections, and are used by ASP.NET site navigation and data source controls.

    IHierarchyData

    ...





    "Hutty" <Hutty@discussi ons.microsoft.c omwrote in message
    news:266D3A08-95C1-4B75-A957-7BA467EB4F85@mi crosoft.com...
    My goal is create a hierarchial dataset with parent child relationship.
    What
    I thought would be an easy task has turned out to be quite difficult. In
    the
    financial world you see many grids with parent/child relationship.
    However,
    my search of the web has not reveal anything that can easily be done.
    >
    I tried the nested gridview. Now I am looking into the Repeater. Is it
    possible to have the parent repeater display more than one column from an
    sqldatasource? I am looking to creat something like this:
    >
    Company Col1 Col2 Col3 .....
    AAAAA 20 40 60
    Child1 15 22 43
    Child2 5 18 17
    >
    BBBBB 10 15 20
    Child1 2 11 9
    Child2 8 4 11
    >
    I have been working with this for weeks as a beginner. Keep getting turned
    around. Any ideas? thanks
    >
    >
    --
    Hutty

    Comment

    • =?Utf-8?B?SHV0dHk=?=

      #3
      Re: Repeater

      I have played around with the repeater enough to run a couple of different
      sample applications. However, none have demonstrated the ability to expand on
      the display of the parent repeater where it equals the child repeater. That's
      the look I am trying to accomplish.
      --
      Hutty


      "sloan" wrote:
      If you have a known number of levels in the hierarchy, you can create a
      "nested repeater".
      Just google it.
      >
      If you have a unknown number, look at implementing your own version of
      Exposes a node of a hierarchical data structure, including the node object and some properties that describe characteristics of the node. Objects that implement the IHierarchyData interface can be contained in IHierarchicalEnumerable collections, and are used by ASP.NET site navigation and data source controls.

      IHierarchyData
      >
      ...
      >
      >
      >
      >
      >
      "Hutty" <Hutty@discussi ons.microsoft.c omwrote in message
      news:266D3A08-95C1-4B75-A957-7BA467EB4F85@mi crosoft.com...
      My goal is create a hierarchial dataset with parent child relationship.
      What
      I thought would be an easy task has turned out to be quite difficult. In
      the
      financial world you see many grids with parent/child relationship.
      However,
      my search of the web has not reveal anything that can easily be done.

      I tried the nested gridview. Now I am looking into the Repeater. Is it
      possible to have the parent repeater display more than one column from an
      sqldatasource? I am looking to creat something like this:

      Company Col1 Col2 Col3 .....
      AAAAA 20 40 60
      Child1 15 22 43
      Child2 5 18 17

      BBBBB 10 15 20
      Child1 2 11 9
      Child2 8 4 11

      I have been working with this for weeks as a beginner. Keep getting turned
      around. Any ideas? thanks


      --
      Hutty
      >
      >
      >

      Comment

      • sloan

        #4
        Re: Repeater

        You can try this:


        If that doesn't help, then I don't have anything.


        Another (in general) useful article:





        "Hutty" <Hutty@discussi ons.microsoft.c omwrote in message
        news:15EC6B65-92B0-4C5B-8BFF-62AD263E9BBE@mi crosoft.com...
        >I have played around with the repeater enough to run a couple of different
        sample applications. However, none have demonstrated the ability to expand
        on
        the display of the parent repeater where it equals the child repeater.
        That's
        the look I am trying to accomplish.
        --
        Hutty
        >
        >
        "sloan" wrote:
        >
        >If you have a known number of levels in the hierarchy, you can create a
        >"nested repeater".
        >Just google it.
        >>
        >If you have a unknown number, look at implementing your own version of
        >http://msdn.microsoft.com/en-us/libr...archydata.aspx
        >IHierarchyDa ta
        >>
        >...
        >>
        >>
        >>
        >>
        >>
        >"Hutty" <Hutty@discussi ons.microsoft.c omwrote in message
        >news:266D3A0 8-95C1-4B75-A957-7BA467EB4F85@mi crosoft.com...
        My goal is create a hierarchial dataset with parent child relationship.
        What
        I thought would be an easy task has turned out to be quite difficult.
        In
        the
        financial world you see many grids with parent/child relationship.
        However,
        my search of the web has not reveal anything that can easily be done.
        >
        I tried the nested gridview. Now I am looking into the Repeater. Is it
        possible to have the parent repeater display more than one column from
        an
        sqldatasource? I am looking to creat something like this:
        >
        Company Col1 Col2 Col3 .....
        AAAAA 20 40 60
        Child1 15 22 43
        Child2 5 18 17
        >
        BBBBB 10 15 20
        Child1 2 11 9
        Child2 8 4 11
        >
        I have been working with this for weeks as a beginner. Keep getting
        turned
        around. Any ideas? thanks
        >
        >
        --
        Hutty
        >>
        >>
        >>

        Comment

        • gerry

          #5
          Re: Repeater

          using repeater :


          if you are working with asp.net 3.5 - ListView is the way to go for most
          data binding scenarios :




          I have used ListView for unknown/unlimited levels of nesting.



          "Hutty" <Hutty@discussi ons.microsoft.c omwrote in message
          news:15EC6B65-92B0-4C5B-8BFF-62AD263E9BBE@mi crosoft.com...
          >I have played around with the repeater enough to run a couple of different
          sample applications. However, none have demonstrated the ability to expand
          on
          the display of the parent repeater where it equals the child repeater.
          That's
          the look I am trying to accomplish.
          --
          Hutty
          >
          >
          "sloan" wrote:
          >
          >If you have a known number of levels in the hierarchy, you can create a
          >"nested repeater".
          >Just google it.
          >>
          >If you have a unknown number, look at implementing your own version of
          >http://msdn.microsoft.com/en-us/libr...archydata.aspx
          >IHierarchyDa ta
          >>
          >...
          >>
          >>
          >>
          >>
          >>
          >"Hutty" <Hutty@discussi ons.microsoft.c omwrote in message
          >news:266D3A0 8-95C1-4B75-A957-7BA467EB4F85@mi crosoft.com...
          My goal is create a hierarchial dataset with parent child relationship.
          What
          I thought would be an easy task has turned out to be quite difficult.
          In
          the
          financial world you see many grids with parent/child relationship.
          However,
          my search of the web has not reveal anything that can easily be done.
          >
          I tried the nested gridview. Now I am looking into the Repeater. Is it
          possible to have the parent repeater display more than one column from
          an
          sqldatasource? I am looking to creat something like this:
          >
          Company Col1 Col2 Col3 .....
          AAAAA 20 40 60
          Child1 15 22 43
          Child2 5 18 17
          >
          BBBBB 10 15 20
          Child1 2 11 9
          Child2 8 4 11
          >
          I have been working with this for weeks as a beginner. Keep getting
          turned
          around. Any ideas? thanks
          >
          >
          --
          Hutty
          >>
          >>
          >>

          Comment

          Working...