Hide Search Row In CGridView

Hi dear friends.

I wonder to know how I can hide search row in CGridView.

I couldn’t find any special result by googling.

By search row you mean the filter?

By hidding do you mean to hide it initialy so that users can show it if needed… or you mean remove it?

If you need to just remove it then you can set the filter property to false - http://www.yiiframework.com/doc/api/1.1/CGridView#filter-detail

filter is not a Boolean type value.it is a CModel type. so to disable a filtering in a Cgridview do not define a filter.so a defualt column filter will not be display in a grid view.

Thanks,worked for me.