dotnetmonitor.com

 
Index
Previous
Next

 

One of the most important services provided by Windows Forms data binding is currency management. In the context of Windows Forms data binding, currency does not have any monetary connotations; rather it refers to maintaining and synchronizing a current item for a list. In Windows Forms, currency management is provided by a type called CurrencyManager. The CurrencyManager is a sub-class of an abstract base type called BindingManagerBase. CurrentManager provides a set of events including CurrentChanged and PositionChanged that allows both Controls and developers to monitor changes in currency. In addition the CurrencyManager provides properties such as Position, and Current to allow Controls and developers to set and retrieve the current item (position). A key aspect of Windows Forms data binding is that currency is not maintained by a control such as a DataGrid rather it is maintained by an instance of a CurrencyManager that is shared between multiple controls
Simple Binding
Complex Binding
Using Simple Binding with a List
Sample: Simple Binding to a List (VS 2005) (VS Project: DataBinding Intro)
Type Conversion
Formatting