Changes
Title
unchanged
Sort and filter a custom or composite CGridView column - that may even contain data from different tables.
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
complex custom CGridView column sort filter
Content
changed
[...]
'header'=> CHtml::encode($model->getAttributeLabel('varColour')),
'filter' => CHtml::activeTextField($model, 'varColour'),
),
```
SCENARIO 3
----------
### Display all records from two different tables in the same gridview
In scenario 1 and 2, I used records from a single table and then spiced them up - perhaps with data from another table.
But in this scenario I want to display all records from both tables in a gridview.
Check out this wiki and comment:
[Wiki](http://www.yiiframework.com/wiki/517/multiple-cactivedataproviders-in-one-cgridview/#c19844 "Wiki")