Object Reference > True DBGrid Properties > ColumnIndex Property |
ColumnIndex Property
This property returns the index of a column in a RowBuffer object passed to an unbound event procedure for a TDBGrid control.
rowbuffer.ColumnIndex (Row, Col)
Read-only at run time. Not available at design time.
The index corresponds to the ColIndex 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 Row argument is an integer specifying the desired row. The range of this argument can be from 0 to RowCount - 1.
The ColumnIndex property allows you to determine the column index associated with a RowBuffer column. It is provided for identification of the column in order for the user to fill in the Value property array with appropriate column data.