Solved

Using the MSFlexGrid

Posted on 1998-12-31
4
501 Views
Last Modified: 2013-11-20
Hello,

I am a very new VC++ with MFC programmer, and I have the following problem:  I have just created an MSFlexgrid in ny VC++ Prof 6.0 project (not the hierarchical flexgrid).  I have imported it into my project, and the wrappers have been successfully created.  I now want to be able to run the project and manually tap info into the cells from the keyboard.  

However, when I try to do this, all my keystrokes are ignored, and there is no input into the flexgrid cell where I have clicked.  I have checked that the flexgrid is enabled.

What have I done wrong??

Answers much appreciated,

Trimtrom
0
Comment
Question by:trimtrom
[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
4 Comments
 
LVL 11

Expert Comment

by:mikeblas
ID: 1327099
Did you remember to add rows and columns to the control first?

Show us your code!

B ekiM


0
 
LVL 4

Expert Comment

by:pagladasu
ID: 1327100
Isn't MSFlexGrid read-only?
0
 

Author Comment

by:trimtrom
ID: 1327101
In response to the comments:  basically there is no code.  I just drew the flexgrid on the dialog, and added a member variable in ClassWizard.  This had the effect of importing the control into the project, and the wrapper code was written automatically.
I then added 10 rows and 8 columns via the Properties.  Done like this, the code compiled and I could run the project, bu could not type into the rows and columns.
I have similarly experimented with the DBGrid and the Grid, and could not input into their rows and columns either.  Surely all 3 are not readonly??
Help!
Trimtrom
0
 
LVL 1

Accepted Solution

by:
majorjohn earned 100 total points
ID: 1327102
Grid Control and MS FlexiGridControl are Read Only. So you can not edit in those columns. But in DBGRID you can easily edit and manipulate according to you. Please go through the help on DBGRID of Visual Basic and then open the DBGRID header and CPP files to understand it better. For other advanced information you can go through the portion in codeguru.com.
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

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 109
viewing source code from eclipse 13 111
centeredAverage challenge 8 186
only14 challenge 19 89
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

732 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