Hi,
I want to change the style (backgroundcolor, etc.) for a specific cell and this isn't data driven, meaning the style has nothing to do with the value of that cell. I've tried to retrieve the CellValuePresenter and set its property. However, because of the reusing of CVP when scrolling, other un-styled cells get this style as well. Is there a way to achieve this? Thanks
You should use a style for the CellValuePresenter rather than setting the background locally. You can assign different cellvaluepresenter styles for different Fields at their Settings-CellValuePresenterStyle property. You can also use Style triggers if you want to change the background conditionally.
Thanks Alex.
Where is this Settings-CellValuePresenterStyle property? On the field? I'd like to change just one cell's style.
If you want it only on one cell, this makes this conditional formatting. You can either use a Style's trigger or a converter to style only a particular cell.
I don't know how to trigger this as the style has no relationship with the value of that cell.
I suspect it's the same story with converter, it's just a random cell that user wants to style.
Any idea?