I want all cells with the value of “S” in any column or any row to have a different background color. I am using this C# code, this compiles without an error, but does not change the background color. Can anyone suggest changes?
Thank you, I use that in other datagrids, but the problem for this datagrid is differrent. My column names and my row names are dynamic. For this cellrender, I need to evaluate the content of the cell no matter what the column name or the row
I think that your recommendation would work if there is a way to alias the column name. I tried event.Column.Property == “ * “ but this causes an error when compiling
I am afraid I am not sure if this can be achieved. Property == "*" will never work and event.Data.ToString() will return the type name of the data item so you can't use it to compare the data. You need to access the column value somehow.