Customizing CGridView look

Hi,

I have a CGridView with eleven columns and I would like to:

  • bold text in every cell of for each row, that column 8’s (text) contains particular letter (‘A’),
  • print text in every cell in red for each row, that column 10 (number) is higher than a particular value (3).

Is there an easy approach for doing so, using Yii?

Or if playing with jQuery, iterating over each row and then inside again iterating over each cell is the only way?

Cheers,

Trejder

Give each column in your GridView column definition a cssClassExpression that expresses the conditions you described?

Got no idea, that this is that simple… :] Thank you and +1!