December 2004
Intermediate to advanced
1008 pages
21h 40m
English
The next section will show you some samples of data binding. Some of these samples will be review (such as the simple binding and ComboBox binding), but the DataGrid sample will be entirely new. Before going on to discuss more advanced data binding topics, you should see the DataGrid binding in action and understand how it works in conjunction with the currency manager and the BindingContext.
As you saw earlier, simple binding involves the association of a single value on a data source with a single property value on a control. This is accomplished by adding a new binding instance to the DataBindings collection, as shown here:
lblDescription.DataBindings.Add("Text", objDataSource, "Description");
All the ...
Read now
Unlock full access