VirtualizingPanel + DataView + RowStateFilter = Weirdness

I am still working through this, but I have run into a weird scenario. When you use a VirtualizinPanel based panel, ie VirtualizingStackPanel to display a DataView, the RowStateFilter is very important. Having it sent to CurrentRows messes things up if you delete rows. For some reason the VirtualizingPanel will not get the ItemChanged event, it doesn’t seem to fire for ItemDeleted. However when you set the row filter to OriginalRows, the VirtualizingPanel does not seem to fire an ItemChanged for when ItemAdded. This only seems to happen when the Update occurs. Still working through this to find the perfect row state filter! It took me forever to find this much out though. Not an obvious connection.

Leave a Reply