title: CGridView custom column filter
body: <p>Q : how to create filter for my gridview?</p>
  
  <p>status : customer name = first_name . last_name</p>
  
  <p>This is my grid view</p>
  
  <pre><code>&lt;?php $this-&gt;widget('zii.widgets.grid.CGridView', array(
      'id'=&gt;'customer-grid',
      'dataProvider'=&gt;$model-&gt;search(),
      'filter'=&gt;$model,
      'columns'=&gt;array(
          array(
                'header'=&gt;'Customer Name',
                'name'=&gt;'$data-&gt;first_name',
                'value'=&gt;'$data-&gt;first_name.\' \'.$data-&gt;last_name',
                ),        
          'company_name',
          'country',
          'state',
          'city',     
          'address1',         
          'phone1',       
          'email',        
          array('name' =&gt; 'company_id',
                 'value'=&gt;'$data-&gt;companies-&gt;name',
                 'filter'=&gt;CHtml::listData($records, 'id', 'name'),
          ),
          array(
              'class'=&gt;'CButtonColumn',
          ),
      ),
  )); ?&gt;
  </code></pre>