I don't think that data binding likes me
Why I don't like data binding:
- You can't work with interfaces.
     If my object has a property with a type IList<T>, it wouldn't work. That
     is even if the collection implements IBindingList.
- An error in the data bound grid
     cannot be exited short of killing the process.
- You can't bind to non-IList
     data.
- It looks like some weird stuff
     is going on behind the scenes, I get index not found exception when using
     the data grids, and I'm pretty sure that I am handling everything just
     fine.
- I can't make deleting works, no
     matter what I do, it looks like the instances that it uses are different
     than the ones that I'm passing it, but I don't have the time to find out
     right now.  I can get it done more easily if I will simply do it by hand, I
     am afraid.
I started to add Support for Data Binding to NHibernate
Generics:
- Added IBindingList, IRaiseItemChangedEvents,
     ICancelAddNew support for EntityList<T>.
- It will automatically subscribe
     to any inserted item when it implements INotifyPropertyChanged
- Support searching out of the
     box.
Unfortunately, it looks like my implementation is flawed, so
I'm not going to commit the changes (maybe to a branch), unless there is anyone
out there who know more than I do about data binding and can help me get it to
work.
 

Comments
Comment preview