Datagrids are meant to show data in a table and no images. You can use a template grid or listview if you want to show images.
Hope this helps!
Many thanks for the quick reply.
There are some features I like in the data grid that are not available in the template grid:
Can I get the same also in a template grid?
I gave it a quick try and in the template grid the values are aligned vertically for each object.
How can I align them horizontally?
So long and thanks…
You can use a layout grid (or table) within your template grid (or listview) to align your values vertically.
You can also add a layout grid (or table) above your template grid (or listview) and place your column titles in here, to make sure they are only displayed once.
Sorting can be done by setting the sort order in the listview (or template grid), but only if you choose data source database or XPath (otherwise you can sort in your microflow). To let the user sort the items by clicking on a column is harder, but can be done with the following widget(for listviews): https://appstore.home.mendix.com/link/app/105694/
I see there is also a hackish solution to show an image within a datagrid, but I've never done it. See https://forum.mendix.com/link/questions/14242
Thanks a lot. I’ll give it a try.