S0RIEN/DataGridBundle — Issue #40: Multiple grids?
Author: print
Created: 2011-10-14 17:18:17+00:00
State: open

Hi!

i have tested youre grid in my app and its a wonderfull bundle, but i have problems with multiple grids on the same page and i doesent know what's wrong.

```php
$grid = $this->get('grid');

// First Grid
$grid->setId('grid1');
$source = new Entity(OneEntity);
$grid->setSource($source);

// And now the second:

$grid->setId('grid2');
$source = new Entity(SecondEntity);
$grid->setSource($source);
```

Error: Source can be set just once

I'm not sure if I understood this function correctly?

I hope you can get me a short tip.

Thanks for your time.