tableView setting the row color in onRowRender

I can’t find anything in the documentation on how to set the color of the row from within onRowRender.  In the forums it said there was a row:setRowColor() function, but when I tried that it says setRowColor is nil.  I have also tried

row.rowColor = { default = .5,.5,.5}}

but that doesn’t seem to do anything

Anyone know?

Thanks in advance.

So this is what I came up with

in the onRowRender method

row = event.row

row._rowColor = {default = {0,1,0}, over = {0,1,0}} 

row._cell:setFillColor( unpack( row._rowColor.default ) )

I figure setting the default rowColor is probably a good idea versus just calling row._cell:setFillColor

So this is what I came up with

in the onRowRender method

row = event.row

row._rowColor = {default = {0,1,0}, over = {0,1,0}} 

row._cell:setFillColor( unpack( row._rowColor.default ) )

I figure setting the default rowColor is probably a good idea versus just calling row._cell:setFillColor