<?php
$this->widget(‘zii.widgets.grid.CGridView’, array(
'id'=>'user-grid',
'dataProvider'=>$pMethods,
'columns'=>array(
array(
'name'=>'ID',
'value' => 'CHtml::checkBox("paymentMethods[]",false,array("value"=>$data["id"]))',
'type'=>'raw',
),
'type',
'description',
)
));
?>
same code used for add/edit the payment methods, problem is how to checked the checkbox in edit mode that user added previously mean to say how marked a checkbox dynamically.