This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)
The export to excel function will affected by the final resorted columns in case you use my export grid to excel extends hzlexportgrid too, Since that export extention just depends on the grid columns configs, and that columns been customized by user themselves just now.
Assume that you have teachers and students model.
You usually take a model instance passed into your view to provide data to a CGridView in this way: