Associating a DataWindow object with the control

After placing the control, you associate a DataWindow object with the control.

StepsTo associate a DataWindow object with the control:

  1. Right-click the DataWindowControl and select Properties.

  2. In the Properties window, locate the LibraryList property in the left panel, and click the Browse (...) button in the right panel to open the Library List dialog box.

  3. Click the Add Library to Library List icon (circled in the following illustration), browse to select the start.pbl file, and click Open.

    The image shows the library list property in the properties window, with the specify library list and select library dialog boxes.

    You can add multiple libraries to the list. When you specify a DataWindow object, the server searches the libraries for it in the order in which the libraries display in the list.

  4. Select DataWindowObject in the Properties window, click the browse button in the right pane to open the Select DataWindow dialog box, select the d_custlist DataWindow object, and click OK.

  5. Change the Name property of the control to dwCustList.

  6. Set the ScrollBars property to Vertical.

    The Customers table in the database has more than 100 rows, so the control needs a scroll bar so that users can see them all.

  7. Close the Properties window.

    The column headers display in the control on the form.