It might be useful but you can take those info directly from ``$request`` 
```php
// DataGrid name = "news_grid"
$selectedRows = $request->request->get('news_grid_batch'); 
```