Data Binding Mechanics

So far all you've seen code for has been some very simple data binding. Before getting into more involved data binding code, you should know how the guts of the data binding system works. Three classes are present within Windows Forms data binding, whether you notice them or not. The main class responsible for all binding is BindingContext. This class can give you an instance of the CurrencyManager or the PropertyManager, depending on whether you are using simple binding (as in the example you saw earlier) or complex binding to a list-type data source.

The BindingContext Class

Every control on a form can have a single BindingContext instance associated with it. Each BindingContext class is the designated manager for a collection ...

Get Microsoft® Visual C#® .NET 2003 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.