I have a listgrid which is bound to a datasource. There is a “type” field in the datasource. I need to apply different styles (for example, color) to each row based on the “type” value. Is there a way to do this?
Thanks.
I have a listgrid which is bound to a datasource. There is a “type” field in the datasource. I need to apply different styles (for example, color) to each row based on the “type” value. Is there a way to do this?
Thanks.
Hi javdeveloper,
Start with the documentation for getCellStyle. In a nutshell, by overriding getCellStyle or getBaseStyle, you could check the value of record.type and return custom styles (via getCellStyle) or a baseStyle for a custom style series (via getBaseStyle).