You might want to try this widget: https://appstore.home.mendix.com/link/app/106254/Mendix/Grid-Cell-Styler
Have not tried it myself but it seems it will do what you want.
There’s a built-in class called
that should make the background green like you want. You can also create and edit your own CSS classes:
For some reason the stock/standard bg-color styling available with mendix do not work with grid cell styler.
You might have to write your css class for background coloring but text-coloring worked for me.