?
Solved

DBGrid Control

Posted on 1998-01-28
5
Medium Priority
?
344 Views
Last Modified: 2013-11-19
I am using ActiveX control called "DBGrid Control" in a Dialog application with MFC. I cannot insert a new row in this control. Could anyone with the experience to this control can tell me if it supports multi-row and how to insert a new row?
0
Comment
Question by:hbh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Expert Comment

by:quiller
ID: 1315111
You may want to consider the MS FlexGrid control instead.
To set the number of rows and columns, you would use the
SetCols(ncols) and SetRows(nrows) member functions.

0
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 50 total points
ID: 1315112
Since this control automaticly binds to a database, it will add the rows when needed. If you want the user to be able to add new rows, set the .AllowAddnew=True
0
 

Author Comment

by:hbh
ID: 1315113
Yes, I have used MSFlexGrid Control. DBGrid is suitable for a
database application.
0
 

Expert Comment

by:Malek103197
ID: 1315114
Dear hbh:

I have tried using DBGrid but could not figure out how to get started. How do I "bind" an Acess data base with the DBGrid so it fills the rows and columns automatically. Any help would be greatly appreciated. I posted this question in the past but it was not answered. Thanks a lot.
Malek
0
 

Expert Comment

by:Malek103197
ID: 1315115
I forgot to give you my address: mccrone@pc.jaring.my
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
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.
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

770 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