A column in a grid.

Syntax

[<oRef> =] new GridColumn(<grid>)

<oRef>

A variable or property—typically an array element of the <grid> object’s columns array—in which to store a reference to the newly created GridColumn object.

<grid>

The Grid object that contains the GridColumn object.

Properties

The following tables list the properties of interest of the GridColumn class. (No particular events or methods are associated with this class.)

Property

Default

Description

baseClassName

GRIDCOLUMN

Identifies the object as an instance of the GridColumn class

className

(GRIDCOLUMN)

Identifies the object as an instance of a custom class. When no custom class exists, defaults to baseClassName

dataLink

 

The field object that is linked to the column in the grid

editorControl

 

The editable control that comprises the body of the grid in the column

editorType

Default

The type of editing control (0=Default, 1=EntryField, 2=CheckBox, 3=SpinBox, 4=ComboBox, 5=Editor) in the column

headingControl

 

The control that displays the grid column heading

 

The following table lists the common properties, events, and methods of the GridColumn class:

Property

 

Event

 

Method

parent

width

none

 

none

Description

Each column in a grid is represented by a GridColumn object. Each GridColumn object is an element in the grid’s columns array, and contains a reference to a heading control and an edit control. You may assign different kinds of controls in different columns. The following types of controls are supported:

Entryfield

CheckBox

SpinBox

ComboBox

Editor

When these controls are used in a grid, they have a reduced property set. Each type of field has a default control type. Logical and boolean fields default to CheckBox. Numeric and date fields default to SpinBox.