ComponentOne True DataControl 8.0
DataSourceField Property (Field)

Sets/returns database field name for a field.

Syntax

Field.DataSourceField= string

Remarks

Read/Write at run time and design time. Property applies to Field object.

This property specifies the name of the SourceRecordset field from which the TData control field is derived. It only relevant for data fields (not calculated or linked fields) in data source mode (DataMode = 0 – DataSource).

When data fields are created by retrieving fields from a data source (using the Retrieve Fields button on the Fields page or the Retrieve Fields context menu item), this property is filled with the name of the corresponding data source field (the Name property gets the same value). You can change this property later, although it is rarely needed.

If you create a new data field at design time or in code, you must set its DataSourceField property. Data fields whose DataSourceField property does not correspond to any field in the data source are ignored; they do not show up in the TData Recordset.

For more information, see True DataControl Fields.

 

 


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

Product Support Forum  |  Documentation Feedback