Click here to Skip to main content
15,894,086 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi everyone
Im a real beginner in vc++ and after much effort I wrote a program compeletely a week ago. now I want to add a very simple grid control so that my program gets its inputs and data from the grid and runs.
I wanna ask for the best way to do this,cuz its more than a week that im trying many methods and havent got to any results. I also tried it with 3 listboxes(as i need three columns) but the saving their data in 3 arrays isnt done correctly and im really confused :( i dont know what to do and i dont have much time.
would u tell me what could be the easiest way to achieve a simple editable grid in dialog and if i can add the MFC gridcontrol to my project as another project how can i use the value of the gridcontrol cells in my main project cuz i get unresolved external symbol error when i use extern variables i guess as the projects are seperated it needs more than just adding headers and using extern:(
would u plz help me im really out of any idea now.
thanks in advance.
Posted
Updated 2-Aug-11 16:43pm
v4

hey right click on the dialog that you want to add a grid control and then choose Microsoft flexi Gird or any grid control according to the requirement control if you don't get this option means then you need to keep the visual studio and complete the installation of ActiveX controls then also if its not coming means install the MS office and then try may be you will get this one then you can use it k all the best
 
Share this answer
 
Maybe this[^] can help. You can also search for other articles here in CP.
 
Share this answer
 
Comments
arishmass 2-Aug-11 23:13pm    
yes as this project has many options i tried to add the whole of it to my project by add existing project but i cant use the values of variables of one project in the other one.whats the way to do that?can u plz tell me?
walterhevedeich 2-Aug-11 23:53pm    
So you did use the project on the article? If so, it might be better if you post your question on the forum section of the article. The author can answer you better regarding your concern.
You can use Hierarchical Flex grid. On your dialog box, right click the button. You get an option Insert Active-X Control. You get a listbox. if you scroll down a bit you can see Hierarchical Flex grid. Select that and click OK button.

Hope this helps
 
Share this answer
 
so odd i cant find it in the list my visual studio 2010 is installed in full mode i dont understand the problem i cant find any way to make a simple dummy grid:((
 
Share this answer
 
can anyone tell me how to add the ready grid control project to my project and use the values of the grid in my proj with out getting unresolved external symbol error?
 
Share this answer
 
This the all time 3rd. most popular article on CP:
MFC Grid control 2.27[^]

I expect it will help you :)

Best regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900