I have a XamGrid and I would like to bold a row conditionally. Preferably something that follows MVVM. For example, say I have the grid bound to a collection of people and one of the fields is "IsImportant" - if that flag is true, I would like to apply a certain style (in this case bold, but in other situations it may be something else) to that row. Is this possible? What is the best approach?
Thanks!
Hello elondon,
Thank you for contacting Infragistics.
You could use style with DataTrigger to bind to the “IsImportant” field. Applying that style to the whole XamGrid will display the text in the row with IsImportant = “true” in bold. I made a sample project for you to represent this approach.
Please let me know if you have any other questions or concerns.