Row background color change

Using the RowRender event and trying to change the row background color doesn't seem to work, where CellRender does?

The following does not work in RowRender, but does work in CellRender.

Does not work:
private void RowRender(RowRenderEventArgs args)
if (args.Data.Level == "Error")
args.Attributes.Add("style", $"background-color: rgba({ColorError})");

Works, but iterates every cell:

private void CellRender(CellRenderEventArgs<Logs> args)
    args.Attributes.Add("style", $"background-color: rgba({ColorError})");

Any thoughts?

Indeed, the cell (<td> element) specifies its own background in the theme. Try handling both CellRender and RowRender and set the cell background to transparent.

Thanks, That seems to work, but was trying to speed up the grid loading and in doing that it's now slower as it now takes two events that need to be handled.

Did you measure that it got slower - e.g. before and after rendering times? I can't imagine that handling another event would make your page slower ... Still if you don't want to set that in code you can use a CSS rule - your browser's developer tools will reveal where the td background comes from and how to override it.

Yes, rudimentary timer funct. I guess it depends on what your doing in the events.

Thank you I will give that a try.