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

Color cell dynamically

1 Answer 53 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hadrien
Top achievements
Rank 1
Hadrien asked on 04 Dec 2012, 12:39 PM
Hi,

I am using a RadGridView control and I assign a List to ItemsSource propriety.
Now I want to modify the color of the cells of one column, depending on it content. So, if in a cell content is "X" I want to color with red, if it is "Y" I want to color with blue, ... (please see attachment)

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 04 Dec 2012, 01:03 PM
Hello,

 You can use our style selectors to achieve your goal. The same demo can be found in your local copy of our WPF examples. 

Regards,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Hadrien
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or