$query->andFilterWhere(['=', 'email', $this->email]); // exact match
$query->andFilterWhere(['like', 'username', $this->username]);
// For getting selected rows via jQuery
$('#your-grid-id').yiiGridView('getSelectedRows');
<?=Html::beginForm(['controller/bulk'],'post');?>
<?=Html::dropDownList('action','',[''=>'Mark selected as: ','c'=>'Confirmed','nc'=>'No Confirmed'],['class'=>'dropdown',])?>
<?=Html::submitButton('Send', ['class' => 'btn btn-info',]);?>
<?=GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
['class' => 'yiigridCheckboxColumn'],
...
],
]); ?>
<?= Html::endForm();?>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'summaryOptions' => ['class' =>'dfenx_pagination_summary',],
'pager' => ['options' => ['class'=> 'pagination pull-right']],
'filterModel' => $searchModel,
'tableOptions' => [
'class' => 'small',
],
'columns' => [
['class' => 'yiigridSerialColumn'],
//'tipo',
[
'attribute' => 'your_Attribute',
'label' => 'your_label',
'headerOptions' => ['class'=>'big-border',],
],
......
?>