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

How to change cell background

1 Answer 52 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark Reidman
Top achievements
Rank 1
Mark Reidman asked on 06 Jul 2010, 02:39 PM
Hi All,

I have a Radgrid element with auto generate columns set to true,
I want to change background color of cells according to the values that are bounded.

How this can be done programatically?
 
I don't specify the coulmns in xaml..? and I can't hook to some appropriate event..
and moreover I can't loop over the rows and the cells.

Please advise,
Mark

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 06 Jul 2010, 02:47 PM
Hello Mark,

 You can use CellStyleSelector column property to achieve this. To access auto-generated columns you can use AutoGeneratingColumn event of the grid.

Best wishes,
Vlad
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Mark Reidman
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or