dotnetmonitor.com

 
Index
Previous
Next

 

You can set the DataSourceUpdateMode for a binding using the VS 2005 designer using the Formatting and Advanced Binding dialog. You can set this value in code as shown below:

/* Bind the CheckBox.Checked property to the data source property Prop */

/* Update the data source when the Checked property value changes */

cb.DataBindings.Add("Checked", ds, "Prop", true, DataSourceUpdateMode.OnPropertyChanged);

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