octobercms/october — pull request #507 by Flynsarmy (2014-08-01 05:35:28+00:00)
Title: [DataGrid widget] Add getGrid method

When you create a `DataGrid` widget, there is currently no way to communicate with the `Grid` it uses. This allows you to do stuff like:

```php
$datagrid = $this->makeWidget('Backend\FormWidgets\DataGrid', $config);
$datagrid->getGrid()->bindEvent('grid.dataChanged', function($changes) {
...
});
```