Solved

using grid controls

Posted on 1998-10-28
2
249 Views
Last Modified: 2008-02-01
I am trying to change all instances of my edit boxes to grid controls. I am having a lot of trouble getting started. If someone who has used this control before(msflexgrid or msdbgrid) could give me a little info on how to get started I would really appreciate it. I really need to know how and where to make calls to the various member functions of the grid class. Every time I try I get undeclared indentifier errors even though I have my ".h" files included.
0
Comment
Question by:bellman
[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
2 Comments
 
LVL 2

Expert Comment

by:jrmcg
ID: 1176404
>> change all instances....
Can you be a little clearer?  Do you have say, 25 edit boxes that you would like to change to a 5X5 grid?

Can you tell me how you are going to implement the grid control?  What exactly do you want to accomplish with it?

What you want to do will decide what kind of grid you want to use.

Let me know and I am sure I can help.

J.R.
0
 

Accepted Solution

by:
azlinda earned 50 total points
ID: 1176405
When you insert a msflexgrid or a msdbgrid to your project, a wrapper class containing all the member functions available for that control will be generated.  So, in your ClassView pane, there will be a class called CMSFlexGrid or CMSDBGrid. I would assume that you place your grid on a dialog box. If so, then you can make calls to the member functions in the same dialog class.   Normally, the msflexgrid.h is inserted in your dialog class for you when you insert the grid into your project.  eg, if your dialog class is called msflexdlg.h, then it will contain #include "msflexgrid.h" at the top. If this #include is not there, then you can type it in manually.  That should be it, you can start trying to use all the member functions provided in the wrapper class now.

I hope that helps...
 
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

717 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