You are viewing revision #2 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version or see the changes made in this revision.
some times we want to show the serailNo on cgridview .
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
array(
'header'=>'Sr #',
'value'=>'$this->grid->dataProvider->pagination->currentPage * $this->grid->dataProvider->pagination->pageSize + ($row+1)',
),
............
));
Thx
Thx for wiki,This is good ;)
Simple but useful
Thanks.
Great !!
Its really a great!!
@Nisanth thulasi
Good
Thanks!
It works beautifully =D
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.