How To Change Cgridview Row Style With Row Values?

What is the story? I have a CGridview or it’s better to say TbextendedGridView (a list of a DB table) some of them has a value is_deleted (y or n). I want deleted record row have another css style (like a middle line or another background). How can I achive this? My code is:





    $this->widget('bootstrap.widgets.TbExtendedGridView', array(

	'id'=>'selfless-grid',

	'dataProvider'=>$model->search(),

	'columns'=>array(

		'id',

		'first_name',

		'last_name',

		'father_name',

		'postal_code',

		'is_deleted',

                array(

                    'htmlOptions' => array('nowrap'=>'nowrap'),

                    'class'=>'bootstrap.widgets.TbButtonColumn',

                    'viewButtonUrl'=>'Yii::app()->createUrl("/selfless/view", array("id"=>$data["id"]))',

                    'updateButtonUrl'=>'Yii::app()->createUrl("/selfless/update", array("id"=>$data["id"]))',

                    'deleteButtonUrl'=>'Yii::app()->createUrl("/selfless/delete", array("id"=>$data["id"]))',


		),

	),

)); 




It can be done through JS other client side stuff, but I’m searching for a yii way first.

Check out the rowCssClassExpression.

Thanks, Thanks, Thanks, that’s exactly what I want.