Adding a vertical grid to a form
- With the form open, go into Design mode.
- In the Toolbox, select the Vertical Grid component.
- Click the form where you want the upper left corner of the grid to be, and then drag to set the dimensions of the grid.
-
Specify properties of the vertical grid in the
Component properties
sheet.
Be sure to specify the collection to bind to the vertical grid in the Data Source > Binding property field.
-
Add the vertical grid elements to be displayed as columns:
- Click the "Edit vertical grid element(s)" button in the upper left corner of the vertical grid component.
- In the Edit Contained Components dialog box, at a minimum, specify the Data Source > Binding for each vertical grid element.
- Optionally, use the
Properties property
sheet to set other properties as desired.
We recommend that you at least rename the element to reflect the associated property and purpose (Name property).
- To add vertical grid elements to the grid display, click Add.
- To remove a selected grid element from the list, click X.
- To rearrange the order in which the columns display in the vertical grid, use the Up and Down arrow buttons.
- To copy the item to another form container, click the "Copy item to" button.
- Click OK as needed to return to the form.
- Save your changes.
- To establish the grid and grid element bindings, close and reopen the form.
Related topics