DBGrid Control

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?
hbhAsked:
Who is Participating?
 
MikeP090797Commented:
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
 
quillerCommented:
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
 
hbhAuthor Commented:
Yes, I have used MSFlexGrid Control. DBGrid is suitable for a
database application.
0
 
Malek103197Commented:
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
 
Malek103197Commented:
I forgot to give you my address: mccrone@pc.jaring.my
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.