How To Gridview Condition Based Display Values

new in yii framework in my application my table field values condition based how to display all the records in gridview pls helpl anybody

In CGridView Data column you can do like


                     'name' => Yii::t('Default','Amount'),

                     'value'=>'(empty($data["amout"]))? "" : Yii::app()->params["currencySymbol"]." ".$data["amout"]',


What is the condition?

There could be different answers - depending on the complexity of the condition.