Hints for data binding with WinForms in .NET 2.0

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


This was first published in September 2006

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.