In most case, the client would like to show long columns in CGridView, so it makes CGridView oversize, below is a quick way to show briefly content in that columns (For example, only first 12 characters), which will save a lot of space to show more columns in one view.
Below is a screen shot, shows hot it works.
Number of downloads: 6
And code is here:
$this->widget('zii.widgets.grid.CGridView', array( ... 'columns'=>array( ... array( 'name'=>'bid_name', 'type'=>'html', 'value'=>'"<abbr title=\'".$data->bid_name."\'>".substr($this->bid_name, 0, 12)."...</abbr>"', ), ...
Now it make 60 characters into 12 characters, and when you mouse move over then it will show whole text in 60 characters.