Change font color for rows in RadzenDataGrid depending on certain values

I would like to ask how can I change the font color (eg. to red) for certain rows in RadzenDatagrid depending on the value of a certain column. I used the sample in https://blazor.radzen.com/datagrid-conditional-template?theme=material3 that seemed to work but I want to change the font color and not the backgroound color.

Thank you

You'll probably need to template every column...

<RadzenDataGridColumn>
	<Template Context="ctx">
		<span style="@(ctx.ValShouldBeRed ? "color: red;" : null)">@ctx.Val</span>
	</Template>
</RadzenDataGridColumn>
1 Like

Thank you for your help. It worked as expected. But I would like to do that in all fields of a datagrid row. How can I do that with Rowrender event.