We had a RadGrid on a form and we are changing cell background of cells manually depending on values in the cells. ANd it works fine but when we scroll down and then back to up then applied colors are meshed up and applied incorrectly
We are using 2011.2.920.40 version of WPF controls.
Thanks
3 Answers, 1 is accepted
0
Dimitrina
Telerik team
answered on 01 Aug 2012, 05:07 PM
Hello,
Generally it is not recommended to work with the visual element of the GridView directly. You can use a CellStyleSelector to apply an appropriate style for the cells. This should fix the problem on scrolling.
The behavior you get is a result of the way you define your custom column. Since RadGridView is virtualized control, it is always recommended to work with data items (not visual elements) and count on Bindings instead of setting a particular property.
I would recommend you to run through this article and this blog post for a reference.