dotnetmonitor.com

 
Index
Previous
Next

 

The Windows Forms simple binding type (System.Windows.Forms.Binding) allows developers to control how and when a change to user interface element updates a bound data source property as well as how and when a change to a data source property updates the user interface element. For example, if a developer bound the Name property on a Customer instance to the Text property on a TextBox control, the developer can specify when changes to the user interface element (Control) are propagated to the data source. Currently supported options are during validation of the TextBox (when user Tabs off the TextBox this is the default), when any changes are made to the Text value or never. The developer can also control when data source changes update the bound user interface element. Currently supported options are when the data source property changes (the default) and never. Note that developers can use the combination of never and calling the Binding API (ReadValue/WriteValue) to provide their own explicit rules for synchronizing data between the data source property and the user interface element
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