I am trying to add a colour to a cell based on a value. I thought this would be done like in your example where you have a property in the model that contains the class name and you set the TableRowItem equal to that
However I've tried doing this at a column level and it does not work. The Class attribute on Column expects a string rather than a Func<TableItem, string> like the above.
Is there a way to add a style dynamically to a Column based off a value in the TableItem?
Sorry if I'm missing something obvious.
I am trying to add a colour to a cell based on a value. I thought this would be done like in your example where you have a property in the model that contains the class name and you set the TableRowItem equal to that
However I've tried doing this at a column level and it does not work. The Class attribute on Column expects a string rather than a Func<TableItem, string> like the above.
Is there a way to add a style dynamically to a Column based off a value in the TableItem?