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:

  1. With a form open, enter Design Mode.
  2. In the Toolbox, click Grid.
  3. Click-and-drag on the form to set the location and dimensions of the grid.
  4. In the Binding property field of the Component properties sheet, specify the collection to bind to the grid:
  5. 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:

  1. With a form open, enter Design Mode, and select the grid to edit.
  2. Click the icon in the upper left corner of the grid.
  3. In the Edit Contained Components dialog box, add, edit, and delete columns as desired.

    For more information, see Edit Contained Components Dialog Box.

  4. For each grid column:
  5. Click OK.

Related Topics

Container, WinStudio Component Property

Add a Component to a Form

About Vertical Grid and Vertical Grid Element Components