Workshop
These quiz questions are designed to test your knowledge of the material covered in this chapter. The answers to the quiz questions can be found in Appendix A, "Answers to Quizzes."
Quiz
What are the properties that are used to bind for list boxes and combo boxes?
The DataMember and DataSource properties
The DataSet and DataSource properties
The DisplayMember and DataSource properties
True or false: A CurrencyManager object sits on top of all the BindingContexts for a form.
True or false: The Master/Detail single DataSet (with a relation) data-binding approach could have been coded using two separate bound DataSets.
For TextBox controls, which (databinding) property is set to bind a column to the control?
(databinding).(Advanced)
(databinding).Tag
(databinding).Text
True or false: You can bind to both traditional data sources as well as almost any structure that contains data.
Windows Forms support binding data to:
DataSet controls
Array controls
ArrayLists controls
Exercise
Go back to the complex data binding example and replace the data bindings properties code with explicit data binding methods code. You will have to undo the DataMember, DataSource, DisplayMember, and DataSource properties.
Remember, use the DataBinding method for ListBox controls and SetDataBinding method for DataGrid controls.