my goal is to customize a grid view. I want to insert a column, with its filter, custom. I read on the forum that you can customize the columns using the column type and passing the filter within the customization of the column. Using CSS, I managed to hide the column, the filter but not the column header.
Is there a way to hide everything. Maybe in one go!
if don’t want the column to exist, just don’t declare it in the column’s index
$this->widget('zii.widgets.grid.CGridView',array(
'id'=>'my-grid',
'columns'=>array(
'column1',
'column2',//just remove the column from here
//also try this
array(
'name'=>'column3',
'header'=>false,
'filter'=>false
)
),
));