Now you attach the DataWindow object to a DataWindow control in the w_emplist_tutorial_main window.
Expand the emplist_tutorial.pkl branch in the System Tree.
Right-click w_emplist_tutorial_main and select Edit from the pop-up menu
or
Double-click w_emplist_tutorial_main in the System Tree.
The Window painter displays the w_emplist_tutorial_main window.
Make sure the Layout view displays.
Select Insert>Control>DataWindow from the menu bar and click inside the main window in the Layout view.
An empty DataWindow control displays in the window.
In the Properties view for the DataWindow, select HScrollBar and VScrollBar.
The scroll bars enable users to scroll through the list of employees when they run the application.
Now you need to associate the d_sqlgr_employee DataWindow object that you created in the last exercise with the DataWindow control that you just added to the window.
In the Properties view, click the browse button next to the DataObject text box and select the d_sqlgr_employee DataWindow.
Click OK.
PocketBuilder associates the d_sqlgr_employee DataWindow object with the DataWindow control.
The Layout view now shows the d_sqlgr_employee DataWindow headings inside the DataWindow control, but you do not see any data yet. The DataWindow does not execute its SELECT statement until you run the application.
Select the DataWindow control and then and drag its borders so the control takes up most of the space in the main window.
When you are done, the window should look something like this: