determine background color bdcolor

Is there a programmatic way to loop the grid and determine the background and/or other attribute of a row/cell?

You may use the forEachRow function to iterate through the grid rows:
and the: … style.html
to change the background color of the row/cell

thank you, but how do I get at a given attribute to test?