Manage Rows

In Edit mode, you can add, copy, and delete rows from an object from the Data Window using the Collapse button<ADD ROW> option.

Add a Row

You can add one or more rows to the object table from the Data Window.

Follow these steps:

  1. Right-click anywhere on the grid area of the Data Window and click Add Row.
  2. Enter the number of rows you want to add in the Add Row dialog and click OK. The default value is 1.

    The recommended range for adding rows is 1 through 100.

  3. The selected number of rows are added at the end of the table in Data Window.

    The newly added rows have default values depending upon the data type of the column. The default values of a column are assigned according to DB2 data type rules.

    Note: You can also add a row using the Collapse button<ADD ROW> option displayed at the end of the table.

Delete a Row

You can delete a row from the object table from the Data Window.

To delete a row, right-click on a row from the object table and select Delete.

Note: Row deletion is committed to the database automatically.

Copy a Row

You can copy an existing row and add it to the object table from the Data Window.

Follow these steps:

  1. Right-click on a row and click Copy Row.

    A dialog appears.

  2. Enter the number of times to add the row in the dialog and click OK. The default value is 1.
  3. The row is added the specified number of times at the end of the table.

Navigate to Top and Bottom

Use the icons Collapse button Collapse button to navigate to the top or bottom of the Data Window.