WinStudio

About GridColumn Components

A grid column is an individual column in a grid component. Grid columns are contained within a grid component. They can be bound to IDO properties from the collection to which the grid is bound.

Grid columns can act like edit components, combo box components, or check box components. The default behavior for a grid column is the same as that of an edit component. If you specify a List Source for the column in the Component properties sheet, it behaves like a combo box. If you set the Check Box property, it behaves like a check box.

If the grid contains too many grid columns to display at once, WinStudio automatically supplies horizontal scroll bars. If you want a particular grid column to be locked in place and displayed in spite of scrolling, set the Locked From Scrolling property in the Component properties sheet.

Adding a grid column component

To add a grid column component:

  1. Open a form that contains a grid component, and enter Design mode.
  2. On the Controls tab of the Toolbox, click GridColumn.
  3. Click the grid component where you want one corner of the component to be, and then drag to set the dimensions of the grid column.
  4. Specify properties of the grid column in the Component properties sheet.

Alternatively, you can drag-and-drop a collection property onto a grid to create a grid component. When you do that, a grid component and caption are created based on the property definition and added to the end of the grid.

Editing a grid column component

To edit a grid column component:

  1. Open a form that contains a grid, and enter Design mode.
  2. Click the column head of the grid column you want to edit.
  3. Edit properties of the grid column in the Component properties sheet.

Related Topics

Container, WinStudio Component Property

Drag and drop collection properties as form components