Selected Row style overriding my cell style

I’m trying to set the background color of a single cell after it has changed.
I’ve tried both:
cell.setAttribute(‘style’,‘background-color:yellow;’);
and
cell.setBgColor(“yellow”);

The 1st method doesn’t seem to do anything. The setBgColor works - but since the row is selected, it doesn’t show the color until you select a different row. I want this style to override any others such as the selected row style.

Any suggestions? Thanks!

The next may work

cell.cell.style = “background-color:yellow;’”;

It will set style directly on HTML element, which must override any other styling rules for the cell.