Implementing BindingList<T>
Posted
by EtherealMonkey
on Stack Overflow
See other posts from Stack Overflow
or by EtherealMonkey
Published on 2010-05-09T21:05:48Z
Indexed on
2010/05/09
21:08 UTC
Read the original article
Hit count: 478
I am trying to learn more about BindingList because I believe that it will help me with a project that I am working on.
Currently, I have an object class (ScannedImage) that is a subtype of a class (HashedImage) that subtypes a native .Net object (Image). There is no reason why I couldn't move the two subtypes together. I am simply subtyping an object that I had previously constructed, but I will now be storing my ScannedImage object in an RDB (well, not technically - only the details and probably the thumbnail).
Also, the object class has member types that are my own custom types (Keywords). I am using a custom datagridview to present these objects, but am handling all changes to the ScannedImage object with my own code. As you can probably imagine, I have quite a few events to handle that occur in these base types.
So, if I changed my object to implement INotifyPropertyChanged, would the object collection (implementing BindingList) receive notifications of changes to the ScannedImage object?
Also, if Keywords were to implement INotifyPropertyChanged, would changes be accessible to the BindingList through the ScannedImage object?
Sorry if this seems rather newbish. I only recently discovered the BindingList and not having formal training in C# programming - am having a difficult time moving forward with this.
Also, if anyone has any good reference material, I would be thankful for links. Obviously, I have perused the MSDN Library. I have found a few good links on the web, but it seems that a lot of people are now using WPF and ObservableCollection.
My project is based on Winforms and .Net3.5 framework.
TIA
© Stack Overflow or respective owner