ComponentOne List 8.0 for ActiveX
Using the True DBList and True DBCombo Controls

Generally, you will use the True DBList and True DBCombo 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.  True DBList and True DBCombo will never modify the data obtained from the RowSource property.

The BoundColumn property specifies which RowSource field supplies the data value to be used for the update.  You can use the following pseudo-code to help you remember how to configure a list or combo control at design time:

Example Title
Copy Code
DataSource.DataField = RowSource.BoundColumn

The left side of the assignment statement specifies the field to be updated; the right side specifies the set of allowable values.

At run time, when the user selects an item from the list, the BoundText property contains a string representation of the data value to be used for the update.  You can also set the BoundText property in code to position the list to a specific item.

The optional ListField property specifies which RowSource field should be used for incremental search.  If not specified, the first column in the list is used.  For TDBList controls, the MatchEntry property determines how the list is searched as the user types characters at run time.

See Also

 

 


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

Product Support Forum  |  Documentation Feedback