Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 1.68 KB

displaying-and-manipulating-data-in-a-form.md

File metadata and controls

18 lines (13 loc) · 1.68 KB
description title ms.date helpviewer_keywords ms.assetid
Learn more about: Displaying and Manipulating Data in a Form
Displaying and Manipulating Data in a Form
11/04/2016
forms [C++], displaying data
displaying data [C++], forms
ODBC [C++], forms
record views [C++], displaying data
data [MFC]
data [MFC], displaying in a form
c56185c4-12cb-40b1-b499-02b29ea83e3a

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