Using RDO Databinding in Visual C++
To use RDO databinding in Visual C++, you need to add an RDO RemoteData control and point to a data source and a record source (SQL query). You also need to add an RDO data-bound control, point it to an RDO RemoteData control, and select the fields to bind to the RDO RemoteData control's record source.
To use RDO databinding in Visual C++
Configure an ODBC data source, if you have not already done so.
Create an MFC Dialog application or MFC Formview application using the MFC Application Wizard.
Add the Microsoft RemoteData control (RDO RemoteData control) to the dialog box; see Inserting the Control into a Visual C++ Application.
Point the RDO RemoteData control to your ODBC data source.
Right-click the control, and then click Properties.
Click the Control tab.
Set DataSource to your ODBC data source.
As needed, set the user name and password for your ODBC data source. Leave it blank if the data source does not require a user name or password.
Enter an SQL query into the SQL property. The data-bound controls can bind to the results of this query.
Set any other RDO RemoteData control properties as needed.
Add a data-bound control. For example, add the DBGrid Control and set the data source as follows.
Right-click the DBGrid, and then click Properties.
Click the All tab.
Set the DataSource property to the RDO RemoteData control. Click the drop-down combo box for the property and find the ID of the RDO RemoteData control. The default ID name is IDC_REMOTEDATACTL1.
To run in test mode, use CTRL+T. You are able to scroll through the data. Press the Esc key or close the dialog box to end test mode.
If you compile and run the program, you are able to scroll through the data as well.