Cgridview Add Checkbox To Some Columns Headers

hi,

i’m working on gridview and i added an export button to it , every thing works fine :)

now i would like to add chechbox to some columns header to give some flexebilty on witch data columns to export

any idea ?

thanks

Hi

you could use what every you want on value or header


array (

 'name'=>'name_column',

 'header' => '<a href="a.html">kos</a>'

 'value'=>'$data->name_column'

)

so, use hrml code directly on header or you can use Yii html Api to do that :)

i tried the header option but, i have to keep the sort link generated by CGridColumn just add after code generated a checkbox