Simple Datagrid Conditional Formatting

Hi all,

I have a SILVERLIGHT datagrid which is populated by a WCF data service and one of the fields within the table is a int value called STATUS, which has a value of 1,2,3 or 4

My question is how would I use conditional formatting so that once the datagrid is populated, each row has its background changed depending on the value of STATUS.

Any help would be much appreciated!


Who is Participating?
MikeTooleConnect With a Mentor Commented:
If it were WPF I'd use data triggers, but I hear that they're not there - at least in Siverlight 3.0

Here are a couple of lisks that discuss options:

Hope this helps
baz86Author Commented:
Thank you MikeToole and mroonal for your links. Both were a great help thats why I have given both points but have given slightly more to MikeToole as i ended up using his solution.
Is your solution suitable for posting as sample code?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.