concat value & CCheckBoxColumn on CGridView

Hi… :)

i have two questions about CGridColumn.

  1. I want to display two data field(firstname & lastname) in one Coloumn at CGridView, i tried use value but not successful.(so i tried to create concat in mysql sql sintax).

but the way I used to change if I use another database. than that I want to use concat in CGridView way.

  1. how to placed CCheckBoxColumn in column Header ?

thank you

Answering your first question, it should be no problem using "value" parameter like this:


array(

    'header'=>'test',

    'value'=>'$data->firstname.$data->lastname',

),

While the second answer, do you want to put checkbox on the filter row? Then it should be like this:


array(

	'value'=>'$data->firstname',

	'header'=>'Firstname',

	'filter'=>CHtml::checkBox('firstname'),

),

thank you run well :rolleyes: