Problem solve Get help with specific problems with your technologies, process and projects.

Hints for data binding with WinForms in .NET 2.0

Microsoft has published a two-part article outlining changes to the Binding and ControlBindingsCollection classes and BindingList implementation in .NET 2.0. The end result is better data binding to WinForms.

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


Dig Deeper on WinForms development

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.