Turning off Search Box in CGridView

Hi guys,

another silly question, I can’t disable the search row for the CGridView in admin ActiveRecords’s code that GII generated… I removed like half of the code already and it’s still showing up… Is there any switch that turns it on/off???




netyum is right, just delete the ‘filter’ key=>value array in your CGridView widget configuration. Should be really straight forward. I have to admit I had the same problem when I started with Yii. I was looking for a search parameter, not for a filter parameter :)

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


    'filter'=>$model,//DELETE THIS ROW






)); ?>