Different highlight colour depending on value change direction
I'm currently evaluating Dapfor grid for our company, and I'm very impressed with the control.
I can see how to make it do almost everything we need, except one -- I want the highlighting colour to be say, red, when a value decreases and to be green when a value increases.
Your highlighting functionality makes it trivial to highlight cell changes, which is excellent. But I really would like to be able to decide the highlight based on the previous and current cell values.
Since you developed this control for trading applications, I'm sure you have some solution for this common problem -- but I can't see it.
Any suggestions would be most welcome.
-
Hello Phillip,
Thank you for your question. The common approach is to keep information about previous values in data objects and subscribe for data update notifications. When a grid receives a notification from a data object, the event handler highlights nested cells with red or green color.
Please find in attachments a simple project, demonstrating how to do it in easiest way.Best regards,
The Dapfor Team
CellHighlighting.zip0
Please sign in to leave a comment.
Comments
1 comment