ComponentOne True DataControl 8.0
ColumnIndex Property

 

ColumnIndex Property

Returns the field index of a column in the RowBuffer.

Syntax

rowbuffer.ColumnIndex (Col)

Remarks

Read-only at run time.  Not available at design time. Property applies to RowBuffer object.

This property returns the index of the field corresponding to a column in the RowBuffer object passed to an event procedure for a TData control in user events mode.  The index corresponds to the index of the field in the collection returned by the Fields property.

The Col argument is an integer specifying the desired column.  The range of this argument can be from 0 to ColumnCount - 1. 

The ColumnIndex property allows you to determine the field 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 data. It is necessary because the RowBuffer object may not contain all fields. It contains only those fields required by the TData control for its operation, for optimization purposes. It may contain no fields at all, in which case ColumnCount is zero, so the only relevant information in the RowBuffer object is row bookmarks.

You can use either this property or the ColumnName property.

See Also

RowBuffer Object

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback