Solved

DBGrid Control

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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 shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

803 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