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

cell style based on another cell's value

1 Answer 57 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 28 Jun 2012, 09:15 PM
Is it possible to set a cell's style based on the content of another cell in that row?

For example: 
If CellA = 0 then CellB.Background = Red
If CellA = 1 then CellB.Background = White

If this is possible, can you please post a sample project that accomplishes this?

Thank you very much.

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 Jun 2012, 06:12 AM
Hello,

 I would suggest you use CellStyleSelector as explained in this help article

Greetings,
Didie
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

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