Accessing the database

Before you can display data in a DataWindow control, you must get the data stored in the data source into that control. The most common way to get the data is to access a database.

An application goes through several steps in accessing a database:

  1. Set the appropriate values for the transaction object.

  2. Connect to the database.

  3. Set the transaction object for the DataWindow control.

  4. Retrieve and update data.

  5. Disconnect from the database.

This section provides instructions for setting the transaction object for a DataWindow control and for using the DataWindow object to retrieve and update data.

To learn more about setting values for the transaction object, connecting to the database, and disconnecting from the database, see: