This extension provides a tree view in a CGridView.
I made it because i tried to use several from Yii extension for this purpose and none of them worked for me. Probably there are a few bugs.
Yii 1.1 or above
Download extension from downloads and upload into the extensions folder
$this->widget('ext.SilcomTreeGridView.SilcomTreeGridView', array( 'id'=>'your-grid-id', 'treeViewOptions'=>array( 'initialState'=>'collapsed', 'expandable'=>true, ), 'parentColumn'=>'parent_id', 'dataProvider'=>$dataProvider, 'columns'=>array( 'id', 'name', ) ));
Change Log September 29, 2014
Minor correction in function that order the nodes
September 02, 2014