Hi All,
I am using MVVM, and display record in XamGrid with ColumnLayout. I want to change cell style on the basis of value changed. Black when value is 0, Red when value less than zero, green when value greater than zero. Same like is attached image. How can i achieve this goal. Kindly help me with sample application.
Regards
Sufyan
Hello Sufyan,
Thank you for your post. I have been looking into it and I can suggest you see the sample in the Samples Browser under xamGrid / Display / Conditional Foramtting Rules section, where it is shown how to use XamGrid’s conditional formatting. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello Stefan,
I see this section but unfortunately this is not working for my case basically i show this formatting in ColumnsLayout. Please help me with sample application.
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Thank you so much. I have solve my problem this sample is very helpful for me. Actually i was forget to implement following tag. That's way my code not worked rather is everything is fine :). Thanks alot.
<ig:XamGrid.ConditionalFormattingSettings> <ig:ConditionalFormattingSettings AllowConditionalFormatting="True"/>
</ig:XamGrid.ConditionalFormattingSettings>
I have created a sample project for you, where I applied a conditional formatting to the XamGrid’s child ColumnLayout. Please let me know if this helps you or you need further assistance on this matter.