Refactor datagrid stuff

| Q                    | A
| -------------------- | ---
| Bug fix?             | N
| New feature?         | N
| BC breaks?           | Y
| CI currently passes? | Y
| Tests pass?          | N
| Scenarios pass?      | ? 
| Checkstyle issues?   | N
| Changelog updated?   | N
| Fixed tickets        | -
| Doc PR               | -
Maybe it could be better to create a constant for this datasource type like we have in our DatasourceInterface