The BindingSource component introduced in the .NET 2.0 Framework gives developers access to a bound list from which operations such as change notification and currency management can be performed.
This is a highly touted improvement to data binding in .NET 2.0, but other changes and additions merit mention as well. A recent two-part article on MSDN, Behind the Scenes: Improvements to Windows Forms Data Binding in the .NET Framework 2.0 by Cheryl Simmons, takes a look at some of these additions.
Part 1 looks at the Binding and ControlBindingsCollection classes, which developers can manipulate by using code or by using the Formatting and Advanced Binding dialog box. Examples of what can be done include binding data in a table to a TextBox and using BindingConplete for exception handling.
Part 2 covers the BingingList, a generic implementation of the IBindingList interface that itself is an extension of the IList interface, Simmons writes. IBindingList allows for the development of custom business objects that are bound to lists and provides change notification whenever a list is changed. The article offers tips for searching and sorting a BindingList.
More on Windows Forms development from SearchVB.com
- Article: What's new
in Windows Forms 2.0?
- Reference: Mini-Guide: Windows
- Book excerpt: Presenting Data with the
DataGridView Control - Ch. 6 of Data Binding with Windows Forms
This was first published in September 2006