ComponentOne True DataControl 8.0
Binding TDataLite to a Data Source

Unlike True DataControl, True DataControl Lite cannot be used as an independent data source. For a TDataLite control to function properly, it must be bound to a standard ADO data source, such as ADODC control or DataEnvironment. This is the main difference between the Light and Full editions: True DataControl Lite modifies behavior of a standard data source, whereas True DataControl is a data source by itself; it does not need an additional data source control or DataEnvironment.

To bind a TDataLite control to a data source, set its DataSource and DataMember properties, either at design time in the Properties window, or at run time:

Example Title
Copy Code
TDataLite1.DataMember = “”

Set TDataLite1.DataSource = Adodc1

or

Example Title
Copy Code
TDataLite1.DataMember = “Command1”

Set TDataLite1.DataSource = DataEnvironment1

Once you set up the data source of your TDataLite control, you can use bound controls with it in one of two different modes:

 

 


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

Product Support Forum  |  Documentation Feedback