Conditional Formatting In Sharepoint

Hello all,
I have a view in SQL showing as a dataFormWebPart, with a few fields, Sales, Number of Sales.
I would like to add a red/green/yellow indicator in a column if these fields are greater that a trigger point, also a field in my view.
It would go something like this: If(@30daySales>@30DayTrigger then GreenIcon, Else If(@30daySales>@30DayTrigger1 then YellowIcon Else If(@30daySales<@30DayTrigger then redIcon.

Also, Would I have to upload these images in an Image Library or are they included in SP?

I ran across the how-to before but cannot find it now. Any help would be great.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can utilise the inbuilt DVWP available via SharePoint Designer to achieve this...

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ted BouskillSenior Software DeveloperCommented:
@georgekhalil: The Data View Web Part and the Data Form Web Part are the same thing.  The user is already using it.

Conditional formatting is achieved using custom XSLT which is demonstrated in this article:

Generally all data in Sharepoint is rendered using XML which can be customized using XSLT when displayed on the page.
@tedbilly, sorry my bad, intention wasn't to repeat what the author had stated, however I was merely pointing to the EUSP article that goes in some depth on what is possible in integrating colored indicators as required by the author.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.