Link to home
Start Free TrialLog in
Avatar of trimtrom
trimtrom

asked on

Using the MSFlexGrid

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
Avatar of mikeblas
mikeblas

Did you remember to add rows and columns to the control first?

Show us your code!

B ekiM


Isn't MSFlexGrid read-only?
Avatar of trimtrom

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of majorjohn
majorjohn

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial