Object Reference > True DBGrid Properties > ColumnName Property |
ColumnName Property
This property returns the name of a column in a RowBuffer object passed to an unbound event procedure for a TDBGrid control.
rowbuffer.ColumnName (Col)
Read-only at run time. Not available at design time.
The name corresponds to the DataField property of the grid column.
The Col argument is an integer specifying the desired column. The range of this argument can be from 0 to ColumnCount - 1.
The ColumnName property allows you to determine the field name associated with a RowBuffer column. It is provided for situations where the field names and/or column order are not known in advance.