SAMPLE: AdoDataGrid.exe Demonstrates How to Use ADO with DataGrid Control Using Visual C++ID: Q229029
|
The AdoDataGrid sample demonstrates the various uses and combinations of ADO objects, and shows how to use the ADO Recordset object to populate the Microsoft DataGrid control, which makes presenting data through ADO very easy in Visual C++.
The sample also shows how to get results (recordset) based on run-time queries and how to populate the DataGrid control with that recordset. This sample application also demonstrates how to use the OLE DB DataLink interface to build a connection string at run time.
The following file is available for download from the Microsoft
Software Library:
AdoDataGrid.exeRelease Date: May-27-1999
Q119591 How to Obtain Microsoft Support Files from Online ServicesThe AdoDataGrid sample is a FormView-based SDI MFC application. All the files are wizard-generated. After inserting the ActiveX object (Microsoft DataGrid control), the wizard will provide CColumn, CColumns, CDataFormatDisp, CDataGrid, COleFont, CPicture, CSelBookmarks, CSplit, CSplits, and CStdDataFormatsDisp classes in their respective files. No modification was made in DataGrid and its dependent files for this sample.
Q174565 Adovc.exe Demonstrates How to Use ADO with Visual C++
Q225132 DataLink Type Library Moved from Msdasc.dll to Oledb32.dllMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web:
http://www.microsoft.com/support/supportnet/refguide/
© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Saqib Rasool, Microsoft Corporation
Additional query words:
Keywords : kbfile kbADO200 kbADO210 kbDatabase kbVC600 kbGrpVCDB kbGrpMDAC
Version : WINDOWS:2.0,2.1,6.0
Platform : WINDOWS
Issue type :
Last Reviewed: June 2, 1999