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
280
Editing properties of the CellValuePresenter. values removed on scroll
posted

First,

I have read the other threads regarding this behavior. I understand the CellValuePresenter is something that is 'destroyed?' during virtualization.  That being said: i have come up with a solution I thought would work but seem to have stumbled on a bug with the DataPresenter.  Any help would be appreciated. 

 

Ok so the idea behind this grid is to have the background color update when the InitializeCellValuePresenter event is fired if the current value in the cell is different then the original value in the cell.  The way i do this is by

1.  putting the original value of the cell in the cells 'tag' when then DataValueChanged event is fired.

2. When the InitializeCellValuePresenter Event is fired I compare the current value of the cell with the value in the 'tag' of that cell. 

   2a. If the 'tag' value is null do nothing and return void;

   2b. If the 'tag' value = the cell's current value then background = white

   2c. If the 'tag' value != the cell's current value then background = yellow;

 The problem I am seeing is that when scrolling up and down there are random cells that are receiving the background = yellow.  If you put a break point at the point where I set background = yellow (the only point were background = yellow) there is never a point that the code breaks. even though many more cells are being updated with the yellow background.  I see this as a bug.

Second,

Can we have a property associated with the DataHistory such that it doesn't keep the most recent changed values but the oldest values?  This would go a long way with allowing us to manage changed values in the DataPresenters=) 

 

 

infraGridBug.zip