ColData

Returns or sets an arbitrary long value associated with each row and column. Not available at design time.

Syntax

object.ColData( number ) [= value ]

object.RowData( number ) [= value ]

The ColData, RowData syntax has these parts:

Part Description
object An object expression that evaluates to an object.
number Long. The number of the column or row in the Grid control where to save or retrieve the data.
value Long. A numeric expression specifying the contents of the ColData or RowData arrays.

Remarks

Use the RowData and ColData properties to associate a specific number with each row or column on a Grid control. You can then use these numbers in code to identify the items.

For example, you can add rows containing totals to a Grid and identify those rows by setting their RowData property to a nonzero value. To update the totals later, you can delete the old totals by scanning the RowData array and removing the appropriate rows.

Another typical use of the RowData property is to keep an index into an array of data structures associated with the items described on each row.