Styling a datalist item with asp.net and c#

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sheena777
    New Member
    • Dec 2007
    • 73

    Styling a datalist item with asp.net and c#

    I have a DataList that gets data Added to it dynamically based on certain criteria. I want to know set the text color of this item to purple from the grey that it is being display as. The Item in the datalist is a hyperlink. Is there any way of being able to sent the color of the font to purple? I know how to set the background color to a differnt colour when the item meets the criteria, I have done this by setting the style of the item but when I want to set the font color it does not work.
  • PRR
    Recognized Expert Contributor
    • Dec 2007
    • 750

    #2
    Look into DataList.ItemDa taBound Event ...here depending on the value you could change the row color... or change formatting...

    Comment

    Working...