Radzendatagrid footer text color

Hello,

Is there a possibility to have different footer colors. I want a green text if the value is >= 0 and red if the value is < 0. I have made a solution in the but this is not nice, because i have 26 columns and 24 of them needs this logic. Is there a possibility to do it "dynamic" in the FooterCellRender / CellRender?

Thnx,
Gr. Kevin

1 Like

Hi @kgoebel,

You can try with the FooterCellRender event. Set the style attribute to the desired value:

var color = args.Data.Value >= 0 ? "green" : "red";
args.Attributes["style"] = $"color: {color}";