Dynamic classes for DataGrid

Hi, I need to change the background colour of TASK Status dynamically and I used dynamic classes for that ennumeration. This is the code that I used. But my output is coming like  The colour is affecting the caption and this colour I assigned is for ‘status-pending’ and pending is my default status value.
2 answers

Hi Giby Mary Babu,

                        Instead of comparing the key values, you can change your logic like this. It will resolve your issue I think.


Final output :

I hope, It will help you.


Thanks and regards,

Vijayabharathi V


It looks like you're using getKey but in the constraint referring to the caption of the enum. The key is not allowed to have spaces. Please check your enum key values and update the dynamic class constraint. I.e. probably ‘In_Progress'