Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
980
Style a single row in a XamGrid
posted

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!

Parents
No Data
Reply
  • 17475
    Verified Answer
    Offline posted

    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.

Children
No Data