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.
Styling a datalist item with asp.net and c#
Collapse
X
-
Look into DataList.ItemDa taBound Event ...here depending on the value you could change the row color... or change formatting...
Comment