Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Comparing #16 with #17

Revision #17 was created by Gerhard Liebenberg Gerhard Liebenberg on Apr 30, 2016, 4:40:39 PM.

Added scenario 3

Content

[...]
'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")