Data Binding (ADO and DAO)

Data-binding is a process that allows one or more data consumers to be connected to a data provider in a synchronized manner. For example, if you move the cursor on a data-bound grid, other controls connected to the same data source will change to reflect the new current record.

There are two main types of data binding: OLEDB/ADO and DAO. OLEDB is the latest Microsoft standard, and is becoming increasingly popular. It provides access to data from many different sources, and was designed to be OLE-compliant. DAO used to be the standard before OLEDB came along, and is still fairly popular.

The VSFlexGrid control has an OLEDB/ADO version (VSFLEX8.OCX) and a DAO version (VSFLEX8D.OCX), so it will work with your data regardless of your choice of database standard.

The VSFlexGrid control has three main properties and one event that controls data binding: the DataSource, DataMode, and VirtualData properties, and the AfterDataRefresh event.


The DataSource property

The DataMode property

The VirtualData property

The AfterDataRefresh event

Other types of Data Binding