set color foreground for row


In my sql table I have a flag (true or false)
Is it possible to show in a different color all the rows with the flag true ?



You may try to use the setRowColor() method:

I’m trying yhis :

      if( fluxGrid.cells(id, 1).getValue() = '3')

but nothing happend.

Does anybody know how to do ?

You may try to crate a custom column type, which will check your flag a nd change the color due to that flag.
Here you can find an example of cell colorizing on the required conditions: … ormat.html
and a tutorial about creating a custom column type: … olumntypes

Your code should work correctly.
Please, make sure that you are iterating through the rows when the data is loaded to the grid.
If the problem still occurs for you please, provide with a complete demo, where the problem can be reconstructed locally.
Here you can find a tutorial about creating a complete demo: … pport.html