ColData

This property returns and sets an arbitrary Long value associated with each column.

Syntax

object.ColData(number) [= value]

Parameters

object
Object expression that evaluates to a Grid control.
number
Long. Number of the column or row in the Grid control where you can save or retrieve data.
value
Long. Numeric expression that specifies the contents of the ColData arrays.

Remarks

The ColData property is unavailable at design time.

Use the ColData property to associate a specific number with a column on a Grid control. You then can use this number in code to identify items. For example, you can add columns containing totals to a Grid control and identify those columns by setting their ColData property to a nonzero value. To update the totals later, you can delete the old totals by scanning the ColData array and removing the appropriate columns.

Another typical use of the ColData property is to assign an index in an array of data structures associated with the items described on each column.