Solved

Using the MSFlexGrid

Posted on 1998-12-31
4
505 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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