In Gridview collection, once collection is loaded from data source, we evaluate some conditions, that depends on previous records. Such that if previous record and current record has same Owner Id, then hide signature of current record i.e. IsVisible=false; else make it visible.
e.g.
index 0: {OwnerId = 123, IsVisible=True} // Index 0 is always true
index 1: {OnwerId = 123, IsVisible = false} // Index 1 Owner Id == Index 0 Owner Id
index 2: {OwnerId = 456, IsVisible = true} // index 2 Owner id != index 1 Owner Id
Index 3: {OwnerId = 567, IsVisible = true}
Index 4: {OwnerId = 567, IsVisible = false}
Before using VirtualQueryableCollectionView, we can easily iterate collection, but as VirtualQueryableCollectionView is loading items on demand, therefore I need to iterate collection on each load.
If I implement such evaluation in ItemsLoading or ItemsLoaded event, It hurts performance. I want suitable place, where itemsLoading is completed, new collection is rendered in gridview and then I can iterate collection.
Is it possible in VirtualQueryableCollectionView. Is it right way to handle such situation. What can be alternative.
Dear team
Any comments on above issue?