You can use GridBody.rowDynamicStyles to specify the style of the cells depending on the value of column cells belonging to the corresponding row, the row number or the state.
The row dynamic style is applied before the column dynamic style specified through DataColumn.columnDynamicStyles. Also, you can specify ignoreRowDynamicStyles property as true to ignore rowDynamicStyles of the corresponding column.
Please refer to GridBody.rowDynamicStyles page about the details on the variables which can be used in Expression of dynamic style.