ComponentOne True DataControl 8.0
Binding Your Controls to True DataControl

Any control supporting OLE DB data binding can be bound to a True DataControl (TData) as its data source. This includes complex controls, such as ComponentOne True DBGrid, and simple controls, such as TextBox, ComboBox and many others.

To bind a control to a TData control, set the control’s DataSource property to the TData control's name. The bound control’s DataMember property should be empty. The binding can be done at design time by selecting the TData control name in the DataSource combo in Visual Basic Properties window, or at run time by setting the DataSource property:

Example Title
Copy Code
Set TDBGrid1.DataSource = TData1

Caution:

  1. Microsoft Visual Basic 6.0 supports two different data binding specifications: (a) OLE DB data binding, supported by True DataControl, and (b) ICursor data binding, a legacy binding protocol supported in Visual Basic 6.0 for backward compatibility reasons. ActiveX data-bound controls (such as ComponentOne True DBGrid, for example) usually come in two varieties: OLE DB and ICursor. Make sure you use the OLE DB version. Data-aware controls based on the ICursor specification cannot be bound to a TData control.

  2. Visual Basic 5.0 does not support OLE DB data binding. Although controls supporting OLE DB can be bound to True Data at run time, this cannot be done in Visual Basic 5.0 at design time. We recommend that you upgrade to Visual Basic 6.0 if you plan to use True Data Control.

 

 


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

Product Support Forum  |  Documentation Feedback