dotnetmonitor.com

 
Index
Previous
Next

 

By default, simple binding updates a bound data source property value as part of Control validation. Control validation occurs when a Control loses focus (see Controlling the Binding Operation for more information). In VS 2005, a new property named DataSourceUpdateMode was added to the Binding type to provide greater flexibility over when a control updates a bound data source property. When this property is set to OnPropertyChanged, it will cause the data source to get updated when the control property value changes rather than on validation (focus change). Note that this only works for control properties that support change notification in the form of the PropertyNameChanged pattern (see Property Change Notification for more information).
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