I have a data source that implements IList. The first time I set the datasource of a grid to an instance of my type the grid accesses just enough rows to populate the grid on screen using the IList indexer. If I then set the data source of the grid to a second instance of my class, the grid accesses all the elements through the enumerator.
What causes this behaviour?
Hello,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and I wasn’t able to reproduce your behavior and I suppose there is an issue with the implementing of the IList, so I suggest you look here :
http://msdn.microsoft.com/en-us/library/system.collections.ilist.aspx
where it is described, in details, how to do so.
Feel free to write me if you have further questions.