Основной вид сетки:
// the following code goes in your view
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'columns'=>array(
'book.title', // assuming the name of the relation is "book" in model of tbl_in_out
'book.author',
'date_out',
'date_in'
)
));
Вам потребуется передать провайдер данных с контроллера:
$dataProvider=new CActiveDataProvider('InOut'); // assuming the name of your model for tbl_in_out is InOut
$this->render('gridviewname',array('dataProvider'=>$dataProvider));