Correct Answer B

A. Incorrect. Selecting the main node of the related table in the Data Sources window and dragging it onto a form binds controls to the entire table, not just to the related records.

B. Correct. Selecting the child node in the Data Sources window and dragging it onto a form is the correct way to bind controls to related data.

C. Incorrect. Dragging a Relation object onto the Dataset Designer creates a relationship between tables in your dataset but does not create bound controls.

D. Incorrect. Binding to the child DataTable in the DataSet binds to the entire table, not just to the related records.

Was this article helpful?

0 0

Post a comment