Mendix does have the “Dynamic classes” option since 8.14(?), but if I want to use this for a column of a data grid I can only use the variables surrounding the grid and not the variables of the row or cell .
If the current row would be in scope for the “Dynamic classes” option, we would not have to use a separate widget to get the desired result.
See example below, the grid in placed a dataview. The entity of the dataview is in scope as $currentObject, but I can not use the attributes of the entity which is used in the datagrid. Typically you want to color the cell based on a value of that row.
Adding the “row” entity in scope would make the Dynamic classes great for grids.