One of my colleagues developed a widget to do this based of the cell styler widget. The widget is on github but there is no documentation yet. I’ll do my best to explain how to set it up.
Place the widget under the datagrid. This is the widgets properties. You need to set the following:
The grid Entity is the same entity that is the data source of your datagrid.
The grid Name can be found in the properties of the datagrid.
Optionally, you can use the parameter tab to use attribute values in the html that you want to inject into your datagrid.
Once you set that up, you can setup columns. You can add as many columns as you want, and each one will specify a column in the datagrid to inject the html. The only thing you need to configure here is the column name and define the html you want to inject. The position setting defines if you want the html to be placed before or after the data in your column. Replace will remove the existing value and put your html.
The column name can be found from the properties of the specific datagrid column that you are putting html into.
Here is the link to the widget. This is not published in the app store yet so use at your own risk.
Hope this helps!
Unfortunately, the data grid widget is quite limited in terms of its content. Alternatively, you can use Template Grid. You can fill the contents of each row as you like (including widgets). If you want to make the template grid to look as close as possible to a data grid, just use a table container for the contents.