Connecting Tech Pros Worldwide Forums | Help | Site Map

Styling a datalist item with asp.net and c#

Member
 
Join Date: Dec 2007
Posts: 73
#1: Nov 21 '08
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 PRR is offline
Moderator
 
Join Date: Dec 2007
Location: India
Posts: 702
#2: Nov 21 '08

re: Styling a datalist item with asp.net and c#


Look into DataList.ItemDataBound Event ...here depending on the value you could change the row color... or change formatting...
Reply