Working with the DataWindow control in PowerBuilder

StepsTo place a DataWindow control in a window:

  1. Open the window that will contain the DataWindow control.

  2. Select Insert>Control>DataWindow from the menu bar.

  3. Click where you want the control to display.

    PowerBuilder places an empty DataWindow control in the window:

    A field of dots displays as a background grid in an untitled window. A blank rectangle superimposed on the grid represents the DataWindow control. The four corners of the control are small black rectangular handles for resizing the control.
  4. (Optional) Resize the DataWindow control by selecting it and dragging one of the handles.

Specifying a DataWindow object

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

StepsTo associate a DataWindow object with the control:

  1. In the DataWindow Properties view, click the Browse button for the DataObject property.

  2. Select the DataWindow object that you want to place in the control and click OK.

    The name of the DataWindow object displays in the DataObject box in the DataWindow Properties view.

  3. (Optional) Change the properties of the DataWindow control as needed.