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

Dynamic Cell Background colour

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Scott Waye
Top achievements
Rank 2
Iron
Veteran
Iron
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 2
Iron
Veteran
Iron
Answers by
Vlad
Telerik team
Share this question
or