I searched around for a while and could not find any references to this issue. Currently in the BusinessListBase class there is a list that keeps track of deleted child items from a collection. I got around to thinking yesterday and wondered why there isn't a similar list for dirty and invalid children. It seems to me that this would be much more efficient than looping through the entire collection to determine if any children are dirty or invalid. For instance, if you had a DirtyList, you could determine if any child objects were dirty simply by checking if DirtyList.Count > 0. The same could be done for determining if any children are invalid. This would also help in the save, as you could just loop through the DirtyList and attempt to update only those instead of looping through all of the children, even if they weren't dirty. Has anyone every considered doing this? Does this make any sense?
Dustin
I'm not sure, but I think your misuderstanding my suggestion. What i was meaning was to have a list/hastable/dictionary... on the collection that could store either the child objects that were dirty/invalid or their respective ids. This would not affect the ui at all and there would still only be one "main list" of objects as far as binding and whatnot goes.
Dustin
Copyright (c) Marimer LLC