CGridView

Hi

i want to display SR.NO column at the begging i write the following code

and it show

CException

Property "CGridView.0" is not defined.

so please help to solve this exception

<?php $this->widget(‘zii.widgets.grid.CGridView’, array(

'id'=&gt;'product-grid',


'dataProvider'=&gt;&#036;model-&gt;search(),


'filter'=&gt;&#036;model,


'columns'=&gt;


array(


	'name'=&gt;'SR.No',


            'type'=&gt;'raw',


	'value'=&gt;'++&#036;row',


    ),





array(


	'product_code',


	'product_name',


	'category_id',


	'product_make',





      array(


		'class'=&gt;'CButtonColumn',


	),


),

));

Try This:




$this->widget('zii.widgets.grid.CGridView', array(

	'id' => 'product-grid',

	'dataProvider' => $model->search(),

	'filter' => $model,

	'columns' => array(

    	/* SR.N */

    	array('header' => '#', 'value' => '($row+1) . "."', 'htmlOptions' => array('style' => 'text-align:right;')),

    	/* MODEL COLUMNS */

    	'product_code',

    	'product_name',

    	'category_id',

    	'product_make',

    	/* ACTION BUTTONS */

    	array(

        	'class' => 'CButtonColumn',

    	),

	),

));