Data binding to objects

IfYouSaySo

Well-known member
Joined
Jan 4, 2006
Messages
102
Location
Hermosa Beach, CA
Programming Experience
3-5
Hi,

I've been looking at data binding of forms controls to objects today, and I'm a little confused. If I understand correctly, the INotifyPropertyChanged interface is new to 2.0, and is documented well on MSDN. But when I bind a collection of customers to a DataGridView (as in the MSDN sample), it seems I'm only getting change notifications (which is I guess what I should expect from INotifyPropertyChanged!) but what I really wanted was to also have the DataGridView update when Customers are added/removed from the list. How do I get that kind of functionality? Also, how do I get two way bindings--i.e. the collection of customers gets updated if a new customer is added via the UI, and the UI gets updated when a new customer is added.

Thanks!
 
Back
Top