DataGrid conditional styles

Hello,

This demo presents a good way of changing text styles in Datagrid. DataGrid conditional template

Unfortunately, I need to do some complex logic in the back-end and mark the text styles. I wonder if it is a way to directly present a property value with HTML tags.

For example, I set the value of my class property as "asdfs<b>123</b>aasdasda" or " asdfaa<span style='color:black'>123</span>"aaswea". The Datagrid can present the text the value, and highlight the "123".

Thank you.

Do you want to output HTML stored in properties? This should be doable by using the Template and setting it to something like @((MarkupString)data.PropertyName)