Difference between #16 and #17 of
Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

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")
6 0
6 followers
Viewed: 65 442 times
Version: 1.1
Category: How-tos
Written by: Gerhard Liebenberg
Last updated by: Gerhard Liebenberg
Created on: Nov 18, 2013
Last updated: 8 years ago
Update Article

Revisions

View all history