This forum posting gives a good explanation of how to use this: https://forum.mendix.com/link/questions/110869
Once you’ve got that working, the documentation for this widget actually shows several different use cases that may be helpful.
One thing to keep in mind – when using Enumerations, you should use the Key value and not the Caption value in your expressions.
Hope that helps,
Have you checked out the documentation tab for that widget? You can find it here:
If you run into any specific issues, feel free to update your post so we can help out :)
But there is an easier better maintainable way: give your enumerations an image for each value and using those images in the datagrid. See examples on https://baseapplication-sandbox.mxapps.io/, log in as visitor and go to ‘UI Helpers’.
But my favorite, which I recommend you to give it a go, is using DataGrid2. Download https://marketplace.mendix.com/link/component/116540/Mendix/Data-Widgets.
This is my column, I have used to name (column3) in the cell styler config. It has Attribute “ErwartungenKurs”.
And this is my css class.