Take a look at the css selector helper widget: https://appstore.home.mendix.com/link/app/35039/
This allows you that add different styling based on data.
If you want to do this in a default Mx-grid this is a bit more difficult. You could think of using a listview or template grid or check out this datatables widget: https://appstore.home.mendix.com/link/app/2702/