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

Dynamic Cell Background colour

1 Answer 14 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Scott Waye
Top achievements
Rank 1
Veteran
Scott Waye asked on 03 Oct 2012, 06:39 PM
Hi, I want to set the background colour of a column based on a value in a combobox outside the grid.  This combo box controls the IsReadOnly property of the same column and when the column has IsReadOnly == true , I want a blue background.  When the combo box is changed such that IsReadOnly == false, I want to remove the blue background and go back to the default.  I've tried the CellStyleSelector which works fine initially but obviously does not get triggered when the column IsReadOnly property or combo box is changed

Any ideas?

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 04 Oct 2012, 05:58 AM
Hi,

 Have you tried to call Rebind() for the grid? 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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