Click here to Skip to main content
15,886,518 members
Articles / Desktop Programming / MFC

MFC DataGrid

Rate me:
Please Sign up or sign in to vote.
5.00/5 (17 votes)
24 Feb 20022 min read 254.8K   7.5K   88  
CDataGrid which was derived from CGridCtrl and used ADO for access to database.
// DataGrid_Demo.h : main header file for the DATAGRID_DEMO application
//
  
#if !defined(AFX_DATAGRID_DEMO_H__B49B2D4E_0963_4876_BFE1_D31B93EA1BB7__INCLUDED_)
#define AFX_DATAGRID_DEMO_H__B49B2D4E_0963_4876_BFE1_D31B93EA1BB7__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
  #error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"   // main symbols

/////////////////////////////////////////////////////////////////////////////
// CDataGrid_DemoApp:
// See DataGrid_Demo.cpp for the implementation of this class
//

class CDataGrid_DemoApp : public CWinApp
{
public:
  CDataGrid_DemoApp();

// Overrides
  // ClassWizard generated virtual function overrides
  //{{AFX_VIRTUAL(CDataGrid_DemoApp)
  public:
  virtual BOOL InitInstance();
  //}}AFX_VIRTUAL

// Implementation

  //{{AFX_MSG(CDataGrid_DemoApp)
    // NOTE - the ClassWizard will add and remove member functions here.
    //    DO NOT EDIT what you see in these blocks of generated code !
  //}}AFX_MSG
  DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DATAGRID_DEMO_H__B49B2D4E_0963_4876_BFE1_D31B93EA1BB7__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Russian Federation Russian Federation
He is a Visual C++ developer,an MCSD and an MCDBA

He has been programming in C/C++ for 6 years, Visual C++ with MFC for 4 years and RDBMS: Oracle, MS SQL for 3 years

Comments and Discussions