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
300
Persist background color after sorting
posted

I created a WPF app that is bound to a data source that will need to be updated.  I've basically raised the DataValueChanged event with a value history of 2 and comparing both values.  If the cell data value has changed, I'm changing the background color of the cell.  This seems to work perfectly up until column sorting.  Is there a way to have the cellValuePresenter retain its set brush property if the column gets sorted?  The only way I could think of is to tag the brush object every time the value is changed and raise a new event to refresh the background colors on sorting. 

TIA

Parents Reply Children
No Data