Microsoft Communities

Welcome to WindowsClient.net | Sign in | Join

Here are some frequently asked questions about Windows Forms and their answers.

Windows Forms FAQs

What is currency management?

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.



Page view counter