I try to change row color based on value using CellRender Event.
When I check the html line of row, it add successfully however it doesn't show it. It adds to the parent like below. How can i change the font-color?
Here is the code part;
protected void renderCell(DataGridCellRenderEventArgs<Lists.list_databases> args)
{
if (args.Data.STATUS == "online")
{
args.Attributes.Add("style", $"color: {("green")};");
}
else
{
args.Attributes.Add("style", $"color: {("red")};");
}
}