Good evening,
Thank you for your reply and time.
The issue on our end was that we did not reassign a new/empty source as the Grids Datasource.
We expected that after clearing the already attached datasource (whether it is an IQueryable or a simple List) and calling Grid.Refresh() would reload the (now empty) data.
The "issue" can be also observed in your example. By obtaining a reference to the List and calling List.Clear(), the initial "cached" data are still desplayed.
They will dissappear once we scroll down enough to cause the Virtualization Mechanism to fetch the next x rows, which are now not available, since the list is empty.
If we disable virtualization, the grid clears successfully. Probably virtualization uses a buffer somewhere in the middle that is not cleared(?)
I am attaching the modified version of your example, to demonstrate the "issue".
We resolved the issue per your suggestion, just leaving this here should anyone encounter the same.
Thank you again for your time,
Chris
Attachment:
ServersampleModified_248b5652.7z