Changes
Title
unchanged
CGridView. Add custom class to table rows preserving original „odd“ and „even“
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
CGridView, table, Widgets
Content
changed
[...]
[html]
<td class="foo5bar">
~~~
(note the difference between „rowCssClassExpression“ and „cssClassExpression“)
From widget you can access such a variables:
-
- **$row
** : the row number (zero-based)
-
**$data
** : the data model for the row
-
**$this
** : the column object.
As you can see we use all of them.
### Expressions
This
```php[...]