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

Change color of a cell from code behind

1 Answer 288 Views
GridView
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 24 Mar 2015, 08:01 PM
I am using a WPF radgridview control to display some data. I am looking for a way to change the background color of a cell during runtime. I see how I can do it when I load data but how can I do it after the data is loaded?  I have some code that gets executed after some input from the user and I need to change some cells background color based on the users input. Ex: Row 3 , cell 5.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 25 Mar 2015, 08:00 AM
Hi John,

In order to achieve the desired functionality, I can suggest you applying a CellStyleSelector instead. You can also check the CellStyleSelector online demo or the same one under the WPF Demos. 

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
GridView
Asked by
John
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or