Overview of Creating a Complex Bound Control

There are two types of data-bound ActiveX controls: simple and complex.

A complex bound control is exemplified by a list or grid control, which can display or manipulate more than one row or column of data from a data source. Complex bound controls give you more ways to retrieve and search data through the use of OLE DB interfaces.

Complex bound controls have a data-source bound property. However, some controls can have both a data-source bound property and simple bound properties. For example, the DBList control in Visual Basic 5.0 has a data-source bound property (RowSource) and a simple bound property (BoundText). DBList was designed to use a data-source bound property to display a list of data and a simple bound property to update data.

Complex bound controls access data differently than simple bound controls. A complex control uses OLE DB data-binding interfaces (IDataSource and IRowPosition) to gain access to a rowset, then consumes data by using OLE DB interfaces.