Working in a grid DataWindow object

If you are viewing a grid-style DataWindow object in the Preview view, you can make the following changes. Whatever you do in the Preview view is reflected in the Design view:

NoteThese features are also available to your users Users of your application can also manipulate columns in these ways in a grid DataWindow object at runtime.

StepsTo resize a column in a grid DataWindow object:

  1. Position the mouse pointer at a column boundary in the header.

    The pointer changes to a two-headed arrow.

  2. Press and hold the left mouse button and drag the mouse to move the boundary.

  3. Release the mouse button when the column is the correct width.

StepsTo reorder columns in a grid DataWindow object:

  1. Press and hold the left mouse button on a column heading.

    PowerBuilder selects the column and displays a line representing the column border.

  2. Drag the mouse left or right to move the column.

  3. Release the mouse button.

StepsTo use split horizontal scrolling in a grid DataWindow object:

  1. To divide the grid into two regions that can scroll independently of each other, position the mouse pointer at the left end of the horizontal scroll bar.

    The sample shows the lower left quadrant of a Data Window object. At bottom is a horizontal scroll bar. Next to it is the text Position pointer here and a line pointing to a black space at the left end of the scroll bar.

    The pointer changes to a two-headed arrow.

  2. Press and hold the left mouse button and drag the mouse to the right to create a new horizontal scrolling border.

  3. Release the mouse button.

    You now have two independent scrolling regions in the grid DataWindow object.

StepsTo copy data to the clipboard from a grid DataWindow object:

  1. Select the cells whose data you want to copy to the clipboard:

    • To select an entire column, click its header.

    • To select neighboring columns, press and hold Shift, then click the headers.

    • To select non-neighboring columns, press and hold Ctrl, then click the headers.

    • To select cells, press the left mouse button on the bottom border of a cell and drag the mouse.

    Selected cells are highlighted.

  2. Select Edit>Copy from the menu bar.

    The contents of the selected cells are copied to the clipboard. If you copied the contents of more than one column, the data is separated by tabs.