You use Visual Studio .NET to develop a Microsoft Windows-based application. Your application
contains a form named CustomerForm to enter time sheet entries for a law firm. At design time you set
the DataBindings properties of each TextBox control to the appropriate column in the DataTable object
of CustomerDataSet. When the application runs, users must be able to edit the information displayed in
the text boxes. All user changes must be saved to the appropriate database when saveButton is executed.
The event handler for btnSave includes the following code segment:
DataAdapter.Update(CustomerDataSet)
You application fails to work correctly. BtnSave fails to save any values edited in the text boxes.
You need to correct this problem.
What should your application do?
A. Call the InsertCommand method of the DataAdapter.
B. Before calling the Update method, ensure that a row position change occurs in
CustomerDataSet.
C. Reestablish the database connection by calling the Open method of the Connection.
D. CALL THE Update method of the DataAdapter and pass in the Connection.