WinStudio
About Grid and Grid Column Components
Grid components allow you to display and maintain data in a tabular
format. The data in a grid is taken from an IDO collection, which must
be bound to the grid.
The grid component itself is a container
for one or more grid columns. Each column displays data associated
with a single property from the IDO collection.
A grid can be bound to a primary
collection, a secondary
collection, or a subcollection.
A collection bound to a grid is displayed and maintained in the grid.
Adding a Grid
To add a grid component:
- With a form open, enter Design
Mode.
- In the Toolbox, click Grid.
- Click-and-drag on the form to set the location and dimensions of
the grid.
- In the Binding property
field of the Component properties
sheet, specify the collection to bind to the grid:
- Click the ellipsis (...) button associated with the Binding
field.
- Use the Edit
Component Data Binding dialog box to specify
the collection to which the grid is to be bound.
- Use the Component properties
sheet to specify other properties as desired.
Adding and Editing Grid Columns
When you first add a grid, WinStudio automatically creates two
columns with generic names. You can edit these columns as desired. You
can also add columns as needed.
To add and edit grid column components:
- With a form open, enter Design
Mode, and select the grid to edit.
- Click the icon in the upper left corner of the grid.
- In the Edit Contained
Components dialog box, add, edit, and delete columns
as desired.
For more information, see Edit
Contained Components Dialog Box.
- For each grid column:
- Use the Binding
field in the Component
properties sheet to bind the column to the desired property.
- Use the Component
and Events
properties sheets to specify other properties as desired.
- Click OK.
Related Topics
Container, WinStudio
Component Property
Add a Component to a Form
About Vertical Grid and Vertical
Grid Element Components