How to select row of RadzenDataGrid via code and modify CSS of said row

This is probably a basic question but I couldn't manage to find an answer to this on the web and these forums. So I'll ask here.

I have a dynamic RadzenDataGrid which uses IDictionary<string, object> as its' item and the propertynames and subsequent values as the data

And I have a function "OnCreateRow" which fires on the RowCreate-event

Everything works fine, but what I would like to do is some validation to check whether all the fields are filled-in and/or are of the required. The validation itself works too but I would like to then modify the CSS-class of certain fields inside the row depending on the outcome of the validation.

TL;DR
So my question is how do I call back to the RadzenDataGrid and change the CSS class of the particular row. Or do any other Modifying action on a specific row that I select via code.
Like for example this pseudocode: dataGrid.SelectRow(rowData).AddClass(myNewCssClass)
How would I be able to achieve this on a RadzenDataGrid?

Hi @Arty,

You can check the RowRender event. Alternatively you can use the column template to add classes where needed. This demo could be helpful: Blazor DataGrid conditional template

Hey @korchev ,

Thanks for the answer!
I've had a look at the RowRenderEvent and at the conditional template and those definitely seem useful. I will probably be using that somewhere in my application.
But for this particular problem I have found that I had the wrong approach and I have decided that I will just do most of the validation in a form before inserting it in the table as that would probably be cleaner and a better UX anyway instead of what I was thinking.