repeater problem

Discussion in 'ASP .Net' started by suzy, May 5, 2004.

  1. suzy

    suzy Guest

    hello,

    i have a dataset and repeater control. i can manage to display the items in
    1 column by doing something like:

    <headertemplate>
    <table>
    </headertemplate>

    <itemtemplate>
    <tr>
    <td>[item goes here]</td>
    </tr>
    </itemtemplate>

    <footertemplate>
    </table>
    </footertemplate>



    what i want to do though, is show all the items across 3 columns, ie:

    item1 item2 item3
    item4 item5 item6
    item7 item8 item9

    etc.


    how can i do this? i want to try and avoid using the xsl transform method
    because i want the items to be server controls (check boxes).

    thanks a lot.
     
    suzy, May 5, 2004
    #1
    1. Advertising

  2. suzy

    Lerp Guest

    Hi,

    You could use a datalist control instead of the repeater...it has a built in
    attribute where you can specify the number of columns to be displayed
    horizontally.

    Cheers, Lerp


    "suzy" <> wrote in message
    news:LMdmc.11032$...
    > hello,
    >
    > i have a dataset and repeater control. i can manage to display the items

    in
    > 1 column by doing something like:
    >
    > <headertemplate>
    > <table>
    > </headertemplate>
    >
    > <itemtemplate>
    > <tr>
    > <td>[item goes here]</td>
    > </tr>
    > </itemtemplate>
    >
    > <footertemplate>
    > </table>
    > </footertemplate>
    >
    >
    >
    > what i want to do though, is show all the items across 3 columns, ie:
    >
    > item1 item2 item3
    > item4 item5 item6
    > item7 item8 item9
    >
    > etc.
    >
    >
    > how can i do this? i want to try and avoid using the xsl transform method
    > because i want the items to be server controls (check boxes).
    >
    > thanks a lot.
    >
    >
     
    Lerp, May 11, 2004
    #2
    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. Replies:
    0
    Views:
    903
  2. Replies:
    0
    Views:
    2,934
  3. Replies:
    1
    Views:
    7,069
    Karl Seguin
    Aug 10, 2005
  4. uncensored
    Replies:
    0
    Views:
    849
    uncensored
    Oct 25, 2006
  5. Microsoft

    Repeater inside a Repeater

    Microsoft, Aug 21, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    228
    Microsoft
    Aug 21, 2006
Loading...

Share This Page