Compartilhar via


Displaying and Manipulating Data in a Form

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Displaying and Manipulating Data in a Form.

Many data-access applications select data and display it in fields in a form. The database class CRecordView gives you a CFormView object directly connected to a recordset object. The record view uses dialog data exchange (DDX) to move the values of the fields of the current record from the recordset to the controls on the form and to move updated information back to the recordset. The recordset, in turn, uses record field exchange (RFX) to move data between its field data members and the corresponding columns in a table on the data source.

You can use the MFC Application Wizard or Add Class (as described in Adding an MFC ODBC Consumer) to create the view class and its associated recordset class in conjunction.

The record view and its recordset are destroyed when you close the document. For more information about record views, see Record Views. For more information about RFX, see Record Field Exchange (RFX).

See Also

ODBC and MFC