ComponentOne True DBGrid Pro 8
DataSource Property

DataSource Property

The DataSource property specifies the data control used to bind a TDBGrid or TDBDropDown control to a database.

Syntax

object.DataSource= datasource

Remarks

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.

See Also

TDBGrid Control

TDBDropDown Control

 

 


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

Product Support Forum  |  Documentation Feedback