Putting a DataWindow object into a control

The DataWindow control is a container for DataWindow objects in an application. It provides properties, methods, and events for manipulating the data and appearance of the DataWindow object. The DataWindow control is part of the user interface of your application.

You also use DataWindow objects in the nonvisual DataStore and in child DataWindows, such as drop-down DataWindows and composite presentation styles. For more information about DataStores, see Chapter 4, “Using DataStore Objects.” For more information about drop-down DataWindows and composite DataWindows, see the PowerBuilder Users Guide.

To use the DataWindow object in an application, you add a DataWindow control to a window or form, then associate that control with the DataWindow object, as illustrated in Figure 2-1:

Figure 2-1: Putting a DataWindow object into a DataWindow control

The DataWindow painter contains multiple DataWindow objects. The Form designer contains a form that includes a DataWindow control. An arrow points from one of the DataWindow objects in the painter to the DataWindow control on the form, showing the association that has been established between them.

This section has information about:

For information about assigning a DataWindow object to a Web DataWindow control, see “Loading the DataWindow object”.

For information about assigning a DataWindow object to a Web control for ActiveX, see “Specifying a DataWindow object for the control”.