Solved

DBGrid Control

Posted on 1998-01-28
5
333 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
5 Comments
 

Expert Comment

by:quiller
Comment Utility
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
Comment Utility
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
Comment Utility
Yes, I have used MSFlexGrid Control. DBGrid is suitable for a
database application.
0
 

Expert Comment

by:Malek103197
Comment Utility
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
Comment Utility
I forgot to give you my address: mccrone@pc.jaring.my
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
notReplace  challenge 53 102
isEverywhere  challenge 19 61
mapBully challenge 6 88
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

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

10 Experts available now in Live!

Get 1:1 Help Now