Datagrid Bootstrap Row Value

Hi everyone, I am doing a datagrid with bootstrap but I need the id of the selected row to create the item, what i want to do is select 2 rows of 2 different datagrids, and when i click in "create" save that 2 ids in the table.

how can I do that?


<div class="row">

		<?php echo $form->labelEx($model,'zf_locales_local_id'); ?>

		<?php

			$locales = new ZfLocales;

			$this->widget('bootstrap.widgets.TbGridView',

				array(

				'type'=>'striped bordered condensed',

				'dataProvider'=>$locales->search(),

					'filter' => $locales,

				'template'=>"{items}\n{pager}",

				'columns'=>array(

							

					array('name'=>'local_num', 'header'=>'Local'),

					array('name'=>'local_tipo', 'header'=>'Tipo'),

					array('name'=>'local_estado', 'header'=>'Estado'), 

				),

			));

		?> 

		<?php echo $form->error($model,'zf_locales_local_id'); ?>

	</div>