Solved

Using the MSFlexGrid

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now