Workshop

for RuBoard

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

1:

What are the properties that are used to bind for list boxes and combo boxes?

  1. The DataMember and DataSource properties

  2. The DataSet and DataSource properties

  3. The DisplayMember and DataSource properties

2:

True or false: A CurrencyManager object sits on top of all the BindingContext s for a form.

3:

True or false: The Master/Detail single DataSet (with a relation) data-binding approach could have been coded using two separate bound DataSet s.

4:

For TextBox controls, which (databinding) property is set to bind a column to the control?

  1. (databinding).(Advanced)

  2. (databinding).Tag

  3. (databinding).Text

5:

True or false: You can bind to both traditional data sources as well as almost any structure that contains data.

6:

Windows Forms support binding data to:

  1. DataSet controls

  2. Array controls

  3. 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.

for RuBoard


Sams Teach Yourself ADO. NET in 24 Hours
Sams Teach Yourself ADO.NET in 24 Hours
ISBN: 0672323834
EAN: 2147483647
Year: 2002
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net