Comparing
#13 with
#14
Content
[...]
```php
array('name'=>'gender', 'value'=>'$data->gender? "Male": "Female"'),
```
actual model file under protected/models
search:
please see the bottom for this part! I can't get the search to search name instead of number.you could also do something like this if you want a simple dropdown on your cgridview in your filter header:
```php
array(
'name'=>'active_status', //
'type'=>'raw',
'value' =>'$data->active_status? "Active": "Inactive"', //converts my 1 and 0 to Active / Inactive
'filter' => array('0' => 'Inactive', '1' => 'Active'), // Adds a dropdown to the filter
'headerHtmlOptions' => array('style'=>'text-align:center; vertical-align: middle;font-size: 20px !important;'),
'htmlOptions'=>array('style'=>'text-align:center; vertical-align: middle;')
),
```
actual model file under protected/models
This part is if your models **ARE** related.
--------------------------------------------[...]