ColKey Property

Returns or sets a key used to identify the given column.

Syntax

[form!]VSFlexGrid.ColKey(Col As Long)[ = value As String ]

Remarks

The ColKey property is used in conjunction with the ColIndex property to identify and refer to columns regardless of their physical position on the grid. These properties are useful when the grid is bound to a recordset or when the user is allowed to move columns around using the ExplorerBar.

To use these properties, assign unique keys to each column using the ColKey property. When you want to refer to a specific column, convert the key into an index using the ColIndex property.

For details an example, see the ColIndex property.

Data Type

String

See Also

VSFlexGrid Control