Add rows or columns to a table
When designing a form, you can add rows or columns to a layout table and columns to a repeating table. When filling out a form, you can add rows to tables that are part of the form template, or you can add rows and columns to tables that you inserted into rich text fields.
Note When designing a form, you cannot add rows to a repeating table. A row in a repeating table stores data only for fields that are part of the group that the repeating table is bound to. If you want to change the layout of controls in a repeating table by adding rows, you can insert a layout table into a cell in the repeating table and then insert controls into that layout table.
Add rows or columns to a layout table
- In design mode, place the insertion point in a table cell next to the location where you want to add rows or columns.
- On the Table menu, point to Insert, and then click the option that you want.
Add columns to a repeating table (automatically create the data source)
Repeating tables are bound to groups in a data source. A column in a repeating table must be bound to a field that is part of the group that the repeating table is bound to. You can automatically generate these fields when you add columns to a repeating table, instead of creating the fields first.
- In design mode, if the Controls task pane is not visible, click More Controls on the Insert menu.
- In the Controls task pane, select the Automatically create data source check box.
Note If the check box is unavailable, the design of the form does not allow the data source to be created automatically. You must add columns that are bound to existing fields or fields that you create.
- In the repeating table, right-click a cell in the column next to the location where you want to add a column, point to Insert on the shortcut menu, and then click Columns to the Left or Columns to the Right.
Note If you want to move an existing control into a repeating table, make sure the field that is bound to the control is part of the group that the repeating table is bound to. Otherwise, the table might not work correctly.
Add columns to a repeating table (bind to existing fields)
Repeating tables are bound to groups in a data source. A column in a repeating table must be bound to a field that is part of the group that the repeating table is bound to.
- In design mode, right-click the Repeating Table label below the table, and then click Repeating Table Properties on the shortcut menu.
- On the Data tab in the Repeating Table Properties dialog box, click Change Binding.
- On the first page of the Repeating Table Binding Wizard, click Next.
- In the Data binding list, double-click the field that you want to add as a column to the table.
Note If the field that you want to add does not appear in the list, the field may not be a part of the group that the repeating table is bound to.
- To change the order of the columns, click a column in the Columns in table list, and then click Move Up or Move Down.
- To test the repeating table, click Finish, and then click Preview Form on the Standard toolbar.
Note If you want to move an existing control into a repeating table, make sure the field that is bound to the control is part of the group that the repeating table is bound to. Otherwise, the table might not work correctly.