VSFlexGrid Introduction > Data Binding (ADO and DAO) > The DataMode property |
The DataMode property allows you to determine whether the control should simply read the data from the data source (flexDMFree setting) or whether it should be fully bound to the data source (flexDMBound setting). In the flexDMFree mode, the data is read from the data source and becomes property of the grid. If you change it, the changes will not be written back to the data source. If you move the cursor, other controls will not be affected. In the flexDMBound mode, the control is fully bound. Changes made to the grid will be reflected in the data source, and moving the cursor on the grid will cause other bound controls to synchronize and display the current record.
Note that in order to modify the data, the Editable property must be set to a non-zero value.