This is a migrated thread and some comments may be shown as answers.

Dynamic background color in Grid Cell.

3 Answers 147 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Tgaud
Top achievements
Rank 1
Tgaud asked on 26 Jan 2010, 09:27 AM
Hi, i'm new on Telerik for WPF,

And i have some issue :

My grid is dynamiclly refreshed with prices, in the cells.
And i want to have my Cell's background change to green when the new price is bigger than the old one,
and change to a Red Background if my new price is lower than the old one.


So, i need to do this in the codebehind (i guess), but i'm not able to find the cell's background color properties there.

Can someone explain me how to do this ?


Thanks for your support.

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 26 Jan 2010, 09:31 AM
Hello,

Please check this post for more info:
http://blogs.telerik.com/pavelpavlov/posts/09-10-03/adding_additional_power_to_radgridview_for_silverlight_with_attached_behaviors.aspx

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tgaud
Top achievements
Rank 1
answered on 26 Jan 2010, 09:42 AM
Are you sure, this will work with DYNAMIC value change ?
0
Vlad
Telerik team
answered on 26 Jan 2010, 09:44 AM
Hello,

Conditional formatting using IValueConverter is a standard WPF/Silverlight approach which will work in any case.

Regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Tgaud
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tgaud
Top achievements
Rank 1
Share this question
or