Style grid cell based on another value on same row


I am using grid.setCellStyleGenerato to style the cells of a grid.
How do I check another column cell value so that i can style current cell different (on same row).
Meaning: cell 2 should be color blue if value of cell 5 == 1

Thank You

The CellReference that you get contains reference to the item. You can use that to get reference to the other column.


Excellent!!! Thank You