In a CGridView value
expression $data
refers to the current object/array in the dataProvider
. Therefore to get the attributes of the current object:
'columns'=>array(
array(
'name'=>'sender',
'type'=>'raw', //or html
'value'=> '$data->name ." ". $data->date." ".CHtml::image($data->image_src)'
),
)