Set Empty Header In Cgridview

how can i set empty header


array(

            'type' => 'raw',

            'name' => 'image',

            'header' => ' ',

            'label'=>'$data->estado_obra',

            'value' => 'CHtml::link(count($data->dispositivos),array("dispositivos/admin","idlocalizacao"=>$data->id_local))'

        ),

not working

What do you mean it’s not working? If you try to output an empty string as the header, Yii will instead output your CGridview instances blankDisplay property, which by default is  

So unless you overrode that, I’m not too sure what you mean by not working.

Hello,

Please check like, to set properties…

name and header both empty no any header display in grid.




'name' => '',

'header' => '',



thanks, i did it setting the atribute label.