Home > Articles > Programming > Windows Programming

  • Print
  • + Share This
This chapter is from the book

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

  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 BindingContexts 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 DataSets.

  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.

  • + Share This
  • 🔖 Save To Your Account