Object Reference > TDBDropDown Properties > DataSource Property (TDBDropDown) |
The DataSource property specifies the data control used to bind a TDBGrid or TDBDropDown control to a database.
object.DataSource= datasource
Read/Write at run time (OLE DB only) and design time.
In the OLE DB version of True DBGrid Pro, you can set this property in code as follows:
Set TDBGrid1.DataSource = ADODC1
However, the non-OLE DB version of True DBGrid Pro adheres to an older data binding specification (ICursor), which requires that you set the DataSource property at design time in the Visual Basic Properties window.
Note
To bind a TDBGrid or TDBDropDown control to a ComponentOne XArrayDB object, use the Array property.