How to Remove Filter Field of Attributes (Not Hiding It)

This is my CGridView:

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







                'htmlOptions' => array('class'=>'users-courses-id'),


		array (

            'name' => '',

            'header' => 'Name',

            'value' => '$data->relUsers->first_name . " " . $data->relUsers->last_name'




                'htmlOptions' => array('class'=>'users-courses-status'),



		array (

            'header' => 'Role',

            'value' => '$data->relUsers->role->name'



                'class' => 'CButtonColumn',

                'visible'=>($this->user->isAdmin() || $this->user->isInstructor()),



                'buttons' => array(

					'changestatus' => array(

						'label' => 'Change Status',

						'imageUrl' => $this->createUrl('images/changestatus.png'),

						'options' => array('id'=>'btnChangeStatus'),






I have try to hide id column and id filter field and it successfully hidden, but because the filter field was hidden its cause other filter field shifted to the right, it make filter field and column not match each others. so i think i should remove it, not hide, or there is other best solution. I hope you can help me :D

remove unwanted from view _search

i mean remove attributes from model , function search()

your suggestion is just for _search form. what i meant is the filter field above CGridView columns as in this following pic:

ok… so, just remove array containing ‘id’.