I've got a problem with the GridView GridCells that I can't find any solution to, and I'm wondering if anyone has any ideas or suggestions. I have a cleanup operation that needs to be run for each GridCell when the item changes, which is normally handled by overriding the updateItem method. The problem is that when items are removed from the GridView and the GridCells holding those items aren't immediately reused for other items, the my cleanup operation is not called because updateItem() is not called.
As an example: A grid has items [A, B, C], so it creates cells [cA, cB, cC]. I then remove all items from the grid [], and cells [cA, cB, cC] do not call updateItem(), as they are not being reused to display any items.
I haven't been able to find any properties I can watch for changes that fire when cells are "removed", or for that matter any way to check if a given cell is being displayed in the grid at all.
Thanks,
Austin