HELP - change values (color) in a repeater control

Discussion in 'ASP .Net' started by mrwoopey, Apr 28, 2004.

  1. mrwoopey

    mrwoopey Guest

    I have a repeater control in a asp.net app. Once the repeater is fill
    with data (via bind) I would like to go through the repeater and
    change the color of one of the items. I can get to where the item is
    by looping through and seeing the contents of the
    DataBoundLiteralControl. I tried updating the DataBoundLiteralControl
    by adding <font> tags to change the color but
    objCurrentRepeaterItem.Controls(0) is read only.

    So, how do you update an item in a repeater control to a different
    color and/or value?

    Please post code or a property that I can use!

    Thanks!

    Phin
    mrwoopey, Apr 28, 2004
    #1
    1. Advertising

  2. mrwoopey

    mrwoopey Guest

    Figured it out from a previous post:

    http://groups.google.com/groups?hl=...F-8&scoring=d&q=repeater+asp.net+change+color

    (mrwoopey) wrote in message news:<>...
    > I have a repeater control in a asp.net app. Once the repeater is fill
    > with data (via bind) I would like to go through the repeater and
    > change the color of one of the items. I can get to where the item is
    > by looping through and seeing the contents of the
    > DataBoundLiteralControl. I tried updating the DataBoundLiteralControl
    > by adding <font> tags to change the color but
    > objCurrentRepeaterItem.Controls(0) is read only.
    >
    > So, how do you update an item in a repeater control to a different
    > color and/or value?
    >
    > Please post code or a property that I can use!
    >
    > Thanks!
    >
    > Phin
    mrwoopey, Apr 29, 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. george d lake

    How to change the color of a row (Repeater)?

    george d lake, Jul 8, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    609
    george d lake
    Jul 8, 2003
  2. Matt Adams
    Replies:
    0
    Views:
    885
    Matt Adams
    Aug 26, 2003
  3. bill
    Replies:
    2
    Views:
    1,088
  4. Kamaljeet Saini
    Replies:
    0
    Views:
    403
    Kamaljeet Saini
    Feb 13, 2009
  5. Replies:
    7
    Views:
    374
    Mick White
    Feb 2, 2005
Loading...

Share This Page