one column for two values

How can i combine two values on one column in CGridView:


<?php $this->widget('zii.widgets.grid.CGridView', array(

	'id'=>'encomenda-linha-grid',

	'dataProvider'=>$encomendaLinhasProvider,

	'columns'=>array(

		 array(            

            'name'=>'Style',

            'value'=>'$data->ritmo->title'.....,

        ),

	),

)); ?>


<?php $this->widget('zii.widgets.grid.CGridView', array(

        'id'=>'encomenda-linha-grid',

        'dataProvider'=>$encomendaLinhasProvider,

        'columns'=>array(

                 array(            

            'name'=>'Style',

            'value'=>"{$data->ritmo->title} {$data->otherValue}",

        ),

        ),

)); ?>

@Layne, just tried, seems not working

how about this:


<?php $this->widget('zii.widgets.grid.CGridView', array(

        'id'=>'encomenda-linha-grid',

        'dataProvider'=>$encomendaLinhasProvider,

        'columns'=>array(

                 array(            

            'name'=>'Style',

            'value'=>'$data->ritmo->title . " , " .$data->otherValue ',

        ),

        ),

)); ?>

See this thread for the solution.

http://www.yiiframework.com/forum/index.php/topic/21025-cgridview-custom-column-value/