Change Background Color dynamically

How to change background color cell dynamically,
example :
First Header Data
row = 0; col:0

Second Header Data
row = 3; col:0

and the background color header data is green;
if the first header data have data, so the second header data change to row = 4,
how to make second header data always have background color green.

Thanks.

Hi @if11080
Best way is to use conditional formatting or a custom renderer, like in this false header example: http://jsfiddle.net/Le25ogc5/ or in real headers http://jsfiddle.net/92tve8r0/ or through a CSS.

I would need to see an example what exactly you would like to color.

i am using handsontable with save and load,
and my data from 2 tables in database, so
i create 2 header
example
Header 1 -> Row : 0,
Data for header 1 -> Row 1,2,3 (In a datetime),

So, Header 2 -> Row :5,
and i set for header background color : green,

and sometime, i load for diffrent datetime,
and count data of for header 1 is changed,

how to set header 2 background color still green.
Thanks…
I hope you can solve my problem.

Hi @if11080
Could you please fill this mixed data type example: http://jsfiddle.net/zf1oe5Lt/ the way that would be helpful in this case?

Issue closed in lack of needed details. Please create a new one if you would like to continue the subject.