I need to compare a cell value with its new value and accordingly change its background to green if cell new value is higher else to red if cells new value is smaller. i also want a upward/ downward arrow besides it.
can you help me with this requirement. should i use conditional formatting or valueconvertor?
how to go about it?
There is nothing in the XamGrid that is going to remember your old value, so you would need to persist that value on your data object and then write a custom conditional formatting rule and make your evaluation.
You could use the IconConditionalFormattingRule as your base class for your custom rule because that will allow you to put icons into the cells.
... and then write a custom conditional formatting rule and make your evaluation...
Is there an example for this?
Also, I'd suggest looking at the code in this sample which sounds like it does basically what you want:
http://labs.infragistics.com/silverlight/lobsamples/2010.3/#/Samples/Grid/Performance/GridRealTimeUpdating
Devin