How To Bind Complex-Bound Controls at Run Time with Visual Basic 6.0 (189668)
The information in this article applies to:
- ActiveX Data Objects (ADO) 2.0
- ActiveX Data Objects (ADO) 2.1
- ActiveX Data Objects (ADO) 2.1 SP2
- ActiveX Data Objects (ADO) 2.5
- ActiveX Data Objects (ADO) 2.6
- ActiveX Data Objects (ADO) 2.7
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q189668 SUMMARY
Visual Basic 6.0 offers a wide variety of ways to bind controls at run time. You can bind controls to a data source, such as the ADO Data Control,
to the Data Environment, or directly to an ADO recordset object. You can
also build classes and controls in Visual Basic that can act as data
sources.
A simple-bound control reads one row or field at a time while a complex-
bound control is one that looks at the entire recordset. For example, a
textbox is a simple-bound control but a grid is a complex-bound control.
The data bound listbox and combobox controls are complex-bound because they
read the entire recordset to provide the list of available data.
Complex-bound controls require that the recordset be bound to support
navigation and bookmarks. This functionality is required for the control to
read the data in the recordset and know that it can later find that
particular row. You may receive an error if you try to bind a complex-bound
control to a data source whose data does not support this functionality.
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbCtrl kbDatabase kbDataBinding kbhowto KB189668 |
---|
|