Coloring hidden cells


I have to color cells programatically in hidden rows or columns. How to achieve this?

In respect of cell content, I can use grid.AllCells[c, r]. Is there something similar for the cell colors?

Sorry, unfortunately, this is not directly available for setting color of hidden cells.

Thank you for your answer