ComponentOne List 8.0 for ActiveX
Updating Another Data Source

The following properties determine how a TDBList or TDBCombo control updates another data source:

BoundColumn

Name of the RowSource field used to update DataField

BoundText

Text value of the BoundColumn field

DataField

Name of the DataSource field to be updated by user selection

DataSource

Source of data to be updated once a selection is made

In True DBList, the DataSource property is not used to populate the control, but specifies the data source that will be updated when the user selects an item in a TDBList or TDBCombo control.If specified, the DataSource property must be set to a bound data source such as a Visual Basic Data control.

For obvious reasons, the DataSource and RowSource properties should be bound to different Data controls.

As with a simple bound control such as a Visual Basic text box, the DataSource and DataField properties uniquely define the field to be updated when the user selects an item from a TDBList or TDBCombo control.Similarly, the RowSource and BoundColumn properties determine the new value used during the update.

When the user selects an item from the list, the BoundText property receives the data value to be used for the update, and the Data control specified by the DataSource property receives notification that an update has been requested. The new value is not actually written to the database until the current record is repositioned or the Data control's UpdateRecord method is executed.

 

 


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

Product Support Forum  |  Documentation Feedback