[Solved] How To Add A Partial View In Cgridview

I have designed a new page and I want to include it in the cgridview as a partial view.

Just like we do it in index action as


<?php 

$this->widget('bootstrap.widgets.TbListView',array(

	'dataProvider'=>$dataProvider,

        'summaryText' => '',

	'itemView'=>'_view',

)); ?>

Actually I want to replace the cgridview default style (that displays the data in table) with my own design.

How can I add that view ?

Thanks in advance.

set the cssFile to false and add your styles in you css file include the file in your page


<?php  $this->widget('bootstrap.widgets.TbListView',array(

       'cssFile'=>false, // add this line 

        'dataProvider'=>$dataProvider,

        'summaryText' => '',

        'itemView'=>'_view',

)); ?>

you can also replace _view.php with your own view