Using FastObjectListView with IVirtualListDataSource crashed at...
ObjectListView - ListView on caffeine, guarana and steroids
Brought to you by:
grammarian
I think this is an error in design. FastObjectListView inherits VirtualObjectListView which implements the property VirtualListDataSource as type IVirtualListDataSource.
If one implements the virtual list source as a new class that just implements the interface IVirtualListDataSource, but does not inherit FastObjectListDataSource and then assigns one instance of this class to FastObjectListView.VirtualListDataView, an InvalidCastException will be thrown when accessing property FilteredObjects or Objects.
In these properties the VirtualListDataSource is casted to FastObjectListDataSource which will not work in that case.
Not really a design error -- more of a limit on what can be expressed in the language.
VirtualObjectListView uses a IVirtualListDataSource.
FastObjectListView has to have a FastObjectListDataSource.