Change a cell background when the value is False

Hello,

I created a Browse screen using Cuba Screen Template. and I have 10 columns and each column represents an answer to a question and it’s boolean (True/False).

I’m stuck in changing the background of the cell to (Red) when the value is false. I tried to install a delegate style provider for the table but couldn’t achieve changing the cell background.

Need your help in this case.

Best regards,

Hi,
Have you tried example given in the documentation?
https://doc.cuba-platform.com/manual-7.2/gui_Table.html#gui_Table_setStyleProvider

Please present your code snippets if it doesn’t work.

1 Like