VSFlexGrid Introduction > Data Binding (ADO and DAO) > The DataSource property |
The DataSource property refers to a recordset, which contains the data. In the OLEDB version, this property may be set at design time to refer to a data source such as the Microsoft ADO control, a DataEnvironment object, or a custom OLEDB data source class you create with Visual Basic. It may also be set at run time. In the DAO version, this property must be set at design time to refer to a DataControl (this control is built-into Visual Basic, rather than an OCX), and cannot be changed later. You may still change the data source, but only through the DataControl itself, and not through the DataSource property.