Hints for data binding with WinForms in .NET 2.0

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

    Requires Free Membership to View

    When you register, you'll begin receiving targeted emails from my team of award-winning writers. Our goal is to provide a unique online resource for developers, architects and development managers tasked with building and maintaining enterprise applications using Visual Basic, C# and the Microsoft .NET platform.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchWinDevelopment.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchWinDevelopment.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Forms development from SearchVB.com

 

This was first published in September 2006

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.