Hour 9

for RuBoard

Quiz Answers

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

A1:

c. ListBox controls use the DisplayMember and DataSource properties to bind data.

2:

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

A2:

False. The complete opposite . It is the BindingContexts object that sits on top of all the CurrencyManagers for a form. Multiple forms have multiple BindingContexts objects.

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.

A3:

True. However, it is usually easier to bind controls to data in a DataSet that contains the relationship as opposed to having to programmatically load from each and join them in your code.

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

A4:

c. (databinding).Text property . Specify down to the individual column that is to be bound to the control.

5:

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

A5:

True. You can bind to both traditional data sources as well as almost any structure that contains data. There just has to be a way to populate the data somehow.

6:

Windows Forms support binding data to:

  1. DataSet controls

  2. Array controls

  3. ArrayLists controls

A6:

a, b, and c. All of these. In fact, any collection that implements the Ilist interface.

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