repeater control: conditional formatting

Discussion in 'ASP .Net Web Controls' started by Digit24, Dec 21, 2005.

  1. Digit24

    Digit24 Guest

    Wondering if you can help.

    I have a page that pulls a list of products from a database. These products
    come in various formats which the data is sorted by, so I have a dataset
    that contains 10 products, ordered by format.

    I am using a repeater to display the products, but what I want to do is
    display a header when the format is different to the previous product.

    In classic ASP, I would simply do a check to see if the product formatis
    different to the previous product and if so, add a table row with the header
    in it.

    How do I do this using a repeater control?
    Digit24, Dec 21, 2005
    #1
    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. Brian Henry

    data grid conditional row formatting

    Brian Henry, Jul 8, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    2,077
    Brian Henry
    Jul 8, 2004
  2. Replies:
    0
    Views:
    842
  3. chuckdfoster
    Replies:
    3
    Views:
    2,773
    Scott Allen
    Mar 9, 2005
  4. Alec S.
    Replies:
    10
    Views:
    10,084
    Alec S.
    Apr 16, 2005
  5. JB
    Replies:
    1
    Views:
    4,105
    Alexey Smirnov
    Oct 24, 2009
Loading...

Share This Page