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">

                <?php

                        $dataProvider=new CArrayDataProvider($rawData, array(

                                'id'=>'roster_create_shift_schedule_main_id',

                                'keyField'=>'roster_create_shift_schedule_main_id',

                                'pagination'=>array(

                                        'pageSize'=>10,

                                ),

                        ));

                ?>

                <?php

                        $shift_in_date= 'shift_in_date';

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

                                'id'=>'agent-schedule-grid',

                                'dataProvider'=>$dataProvider,

                                //'filter'=>$model,

                                'columns'=>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))'),

                                         array(

							'class'=>'CCheckBoxColumn',

						    'selectableRows'=>2,

							'id'=>'CB'.'shift_in_date',

						),

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

                                ),

                        ));

                ?>

        </div>



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

CB=>Array([0]=>10,[1]=>11,[2]=>12)