?
Solved

DBGrid Control

Posted on 1998-01-28
5
Medium Priority
?
352 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
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

Independent Software Vendors: 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

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.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month14 days, 17 hours left to enroll

839 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