MCSD.NET - 70-306 Exam Question:
Download Questions PDF

As a developer at XYZ you develop a new sales analysis application that reuses existing data
access components. One of these components returns a DataSet object that contains the data for
all customer orders for the previous year.
You want your application to display orders for individual product numbers. Users will specify the
appropriate product numbers at run time.
What should you do?
A. Use the DataSet.Reset method.
B. Set the RowFilter property of the DataSet object by using a filter expression.
C. Create a DataView object and set the RowFilter property by using a filter expression.
D. Create a DataView object and set the RowStateFilter property by using a filter expression..

Answer:

C. Create a DataView object and set the RowFilter property by using a filter expression.

Download MCSD.NET - 70-306 Exam Interview Questions And Answers PDF

Previous QuestionNext Question
You are preparing a localized version of a Windows Form named XYZLocal. Users of XYZLocal
speak a language that prints text from right to left. User interface elements on the form need to
conform to this alignment.
You must ensure that all user interface elements are properly formatted when the localized
Windows Form runs. You must also ensure that XYZLocal is easy to update and maintain.
What should you do?
A. Set the RightToLeft property of each control on the form to Yes.
B. Set the RightToLeft property of the form to Yes.
C. Set the Language property of the form to the appropriate language.
D. Set the Localizable property of the form to True.
Suppose You develop a Windows-based application. The application uses a DataSet object that contains
two DataTable objects. The application will display data from the two data tables. One table
contains customer information, which must be displayed in a data-bound ListBox control. The
other table contains order information, which must be displayed in a DataGrid control.
You need to modify your application to enable the list box functionality. What should you do?
A. Use the DataSet.Merge method.
B. Define primary keys for the DataTable objects.
C. Create a foreign key constraint on the DataSet object.
D. Add a DataRelation object to the Relation collection of the DataSet object.