Solved

DBGrid Control in MFC

Posted on 1998-06-04
2
718 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
ID: 1315999
Use the Microsoft Remote Data Control instead.

0
 
LVL 1

Accepted Solution

by:
chacko earned 50 total points
ID: 1316000
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

863 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

25 Experts available now in Live!

Get 1:1 Help Now