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'); ?>


			$locales = new ZfLocales;



				'type'=>'striped bordered condensed',


					'filter' => $locales,




					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'); ?>