ComponentOne List 8.0 for ActiveX
DataField Property (TDBCombo)

 

TDBCombo Reference> TDBCombo Control Properties> DataField Property (TDBCombo)

DataField Property (TDBCombo)

Syntax

object.DataField = string

Remarks

Read/Write at run time and design time.

Property applies to TDBList and TDBCombo controls.

The DataField property returns or sets the name of the DataSource field that will be updated when the user selects an item from a control.

Generally, you will use the TDBList and TDBCombo controls with two Data controls: one to fill the list as designated by the RowSource property, and one to update a field in a database as designated by the DataSource and DataField properties.

If the DataField property is not specified, no updates will occur, and the control will not respond to record position changes in the Recordset (Data control) associated with DataSource.

Note: Do not confuse the DataField property of the control with the DataField property of the Column object or the BoundColumn property used to specify the source field for the update.

See Also

TDBList and TDBCombo Controls

 

 


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

Product Support Forum  |  Documentation Feedback