ComponentOne True DataControl 8.0
ColumnName Property

 

ColumnName Property

Returns the field name of a column in the RowBuffer.

Syntax

rowbuffer.ColumnName (Col)

Remarks

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

This property returns the name 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 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 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 ColumnIndex property.

See Also

RowBuffer Object

 

 


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

Product Support Forum  |  Documentation Feedback