Repeater Control - 3 Columns - Unlimited Rows

Discussion in 'ASP .Net' started by Peggy, May 17, 2007.

  1. Peggy

    Peggy Guest

    Hello

    I wanna list my stocks in a web page according to search result, this
    listing must be in a (3 columns and unlimited size) table, what I wanna list
    in a cell is stock name, stock price and stock picture

    I tried repeater control but it list data only row by row I think, I couldnt
    make first 3 datarow in first row, and second three row in second row,

    Data comes from a table, and paging is a must, Something like this >>>

    ------------------------------------------------------------------------------
    Stocks
    ------------------------------------------------------------------------------
    Stock 1 Stock 2 Stock 3
    10,56 USD 20 USD 30,11 USD
    Picture Picture Picture

    Stock 4 Stock 5 Stock 6
    10,56 USD 20 USD 30,11 USD
    Picture Picture Picture

    Stock 7 Stock 8 Stock 9
    10,56 USD 20 USD 30,11 USD
    Picture Picture Picture
    ------------------------------------------------------------------------------
    1 - 2 - 3 - 4 - 5 - 6 - 7 - Paging - Next....
    ------------------------------------------------------------------------------

    How can I do this ? Repeater o anoher way ?

    Thank you
    Peggy, May 17, 2007
    #1
    1. Advertising

  2. Use datalist instead of repeater. Set property RepeatColumns to 3.

    --
    Eliyahu Goldin,
    Software Developer & Consultant
    Microsoft MVP [ASP.NET]
    http://msmvps.com/blogs/egoldin


    "Peggy" <> wrote in message
    news:%...
    > Hello
    >
    > I wanna list my stocks in a web page according to search result, this
    > listing must be in a (3 columns and unlimited size) table, what I wanna

    list
    > in a cell is stock name, stock price and stock picture
    >
    > I tried repeater control but it list data only row by row I think, I

    couldnt
    > make first 3 datarow in first row, and second three row in second row,
    >
    > Data comes from a table, and paging is a must, Something like this >>>
    >
    > --------------------------------------------------------------------------

    ----
    > Stocks
    > --------------------------------------------------------------------------

    ----
    > Stock 1 Stock 2 Stock 3
    > 10,56 USD 20 USD 30,11 USD
    > Picture Picture Picture
    >
    > Stock 4 Stock 5 Stock 6
    > 10,56 USD 20 USD 30,11 USD
    > Picture Picture Picture
    >
    > Stock 7 Stock 8 Stock 9
    > 10,56 USD 20 USD 30,11 USD
    > Picture Picture Picture
    > --------------------------------------------------------------------------

    ----
    > 1 - 2 - 3 - 4 - 5 - 6 - 7 - Paging - Next....
    > --------------------------------------------------------------------------

    ----
    >
    > How can I do this ? Repeater o anoher way ?
    >
    > Thank you
    >
    >
    Eliyahu Goldin, May 17, 2007
    #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. helpful sql
    Replies:
    0
    Views:
    797
    helpful sql
    May 19, 2005
  2. Mike Mimic

    JSpinner & unlimited max value

    Mike Mimic, Jan 8, 2004, in forum: Java
    Replies:
    4
    Views:
    1,047
    Mike Mimic
    Jan 8, 2004
  3. Replies:
    0
    Views:
    341
  4. ethem
    Replies:
    1
    Views:
    1,180
    Ashok Kunwar Singh
    Mar 2, 2011
  5. Debbie Davis

    display 5 records across, unlimited rows

    Debbie Davis, Jan 1, 2004, in forum: ASP General
    Replies:
    2
    Views:
    131
    Debbie Davis
    Jan 1, 2004
Loading...

Share This Page