Solved

DBGrid Control in MFC

Posted on 1998-06-04
2
713 Views
Last Modified: 2013-11-19
I would like to use a DBGrid Control in a MFC dialog box application but I don't know how to make connection with a database, that is to bound data in columms of DBGrid. When this control is used in VB, it needs a Data control. The Data control can connect with database then DBGrid can find data source. However, Data Control is belong to VB. I can't find it when I insert an ActiveX control. Anyone can tell me how to do in MFC?
hbh
0
Comment
Question by:hbh
2 Comments
 
LVL 1

Expert Comment

by:dkremer
Comment Utility
Use the Microsoft Remote Data Control instead.

0
 
LVL 1

Accepted Solution

by:
chacko earned 50 total points
Comment Utility
Please refer MDIBIND example come with MSVC++ CD.

Create a RDC(Remote Data Control) in a modeless dialog. Create a datasource thru ODBC32 and connect this data source to the RDC. Now create your DBGrid and say the source is this RDC. Remember, do in a modeless dialog. Modal dialog behaviour is unpredictable.

ODBC data source -> RDC -> DBGrid.

You can create these controls from 'Insert' menu item under 'Project' in MSVC++.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 122
Strange date stored 22 99
Host to IP 7 73
ShiftLeft challenge 21 65
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now