How to clear business list base without deleting items
How to clear business list base without deleting itemsOld forum URL: forums.lhotka.net/forums/t/7559.aspx
jhughes posted on Wednesday, September 02, 2009How can I clear a business list base collection but not have it put all of the objects in the deleted list? I need to clear the collection and add new items to the collection but cannot just replace the collection because of some binding/sorting issues working with WPF toolkit datagrid.
RockfordLhotka replied on Wednesday, September 02, 2009
It doesn't really work that way, so I'm not sure there's an answer.
Certainly you can do DeletedList.Clear() from inside your collection - that'd entirely remove the items that were moved to the DeletedList without actually deleting them from the database.
Copyright (c) Marimer LLC