Difference between #3 and #2 of Cgridview counter column

unchanged
Title
Cgridview counter column
unchanged
Category
Tips
changed
Tags
serailNoserialNo in Cgridview, counterColumn in Cgridview
changed
Content
some times we want to show the serailNoserialNo on
cgridview .

~~~
[php]
$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)',
        ),
       ............
));
~~~
Write new article