Oren Novotny wrote: > I guess part of what I was wondering was if it would be worth > the effort to implement IBindingList for a collection instead of > using the implementation provided with a dataset. I always > thought that a dataset seemed overkill for just binding a bunch > of objects to a listbox, but then I found it useless if I wanted to > add/remove items from the listbox.
IBindingList isn't trivial to implement, but it's also not all that hard. (There's just quite a lot of it...) Mark Boulter posted an implementation here: http://discuss.develop.com/archives/wa.exe?A2=ind0208A&L=DOTNET-CLR&P=R15129 &I=-3 But I would hesistate to describe doing this as being simpler than using a dataset. (A collection that implements IBindingList like this is undoubtedly a simpler thing than a DataSet, but DataSet has the advantage of already being in the framework, which makes *using* it simpler... You don't have to write it first!) -- Ian Griffiths DevelopMentor You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.