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'=>'product-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>
array(
'name'=>'SR.No',
'type'=>'raw',
'value'=>'++$row',
),
array(
'product_code',
'product_name',
'category_id',
'product_make',
array(
'class'=>'CButtonColumn',
),
),
));