Define Custom Id To Checkbox In Cgrdiview

how to define a custom checkbox id in cgridview?

eg: How do i add the shift_in_date column value to my checkbox id like say CB_2012-09-26,CB_2012-09-27 and so on?

<div class="row">


                        $dataProvider=new CArrayDataProvider($rawData, array(









                        $shift_in_date= 'shift_in_date';

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





                                         //'roster_create_shift_schedule_main_id'=>array('name'=>'CB', 'type'=>'raw', 'value'=>'CHtml::checkBox("roster_create_shift_schedule_main_id","",array("id"=>"chkPublish_".$data->shift_in_date))'),






                                         'shift_in_date', 'in_time', 'shift_out_date', 'out_time',





just to be a bit more clear i want my checkbox array, instead of returning as an array of incremental keys when i submit the form, i would like my keys to be my shift_in_date which is the second column in my cgridview…

like CB=>Array([2012-06-09]=>10,[2012-06-09]=>11,[2012-06-09]=>12)

currently it returns