I have a CGridView wigdet with CCheckBoxColumn like this:
$this->widget(\'zii.widgets.grid.CGridView\', array( \'dataProvider\'=>$dataProvider,
If you wrap your Gridview into a simple form you can send the checkboxs selected to the value,
An example:
View
findAll(), 'USER_ID', 'FULLNAME') ); echo CHtml::ajaxSubmitButton('Save' , Yii::app()->createUrl('query/ajaxUpdate') , array('success' => 'js:reloadGrid', ) , array('class' => 'btn btn-success')); $this->widget('zii.widgets.grid.CGridView', array( 'id'=>'query-grid', 'dataProvider'=>$model->search(), 'filter'=>$model, 'columns'=>array( array( 'id' => 'query', 'class'=>'CCheckBoxColumn', 'selectableRows' => '2', ), 'Contact', 'Email', 'Company', ), )); ?>
Controller
public function actionAjaxUpdate() { var_dump($_POST); }