Adding Columns to a DataWindow Object

You can add columns that are included in the data source to a DataWindow object.

When you create a DataWindow object, each column in the data source is automatically placed in it. Typically, you would add a column to restore one that you had deleted from the DataWindow object, or to show the column more than once in the DataWindow object.

Note: To add a column from the DataWindow definition to a DataWindow, insert it from the Toolbox. You might see unexpected results if you copy a column from one DataWindow object to another if they both reference the same column but the column order is different. (Copying a column copies a reference to the column's ID in the DataWindow definition.)

Suppose d_first and d_second both have first_name and last_name columns, but first_name is in column 1 in d_first and column 2 in d_second. If you delete the first_name column in d_second and paste column 1 from d_first in its place, both columns in d_second display the last_name column in the Preview view, because both columns now have a column ID of 1.

  1. In the Toolbox, click the Column control.
  2. Click where you want to place the column.
    You see the Select Column dialog box, which lists all columns included in the data source of the DataWindow object.
  3. Select the column.