Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 Frown | :( 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 externFrown | :(
would u plz help me im really out of any idea now.
thanks in advance.
Posted 2-Aug-11 9:25am
Edited 2-Aug-11 17:43pm
v4
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Maybe this[^] can help. You can also search for other articles here in CP.
  Permalink  
Comments
arishmass at 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 at 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.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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 gridCry | :((
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

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?
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 7

This the all time 3rd. most popular article on CP:
MFC Grid control 2.27[^]
 
I expect it will help you Smile | :)
 
Best regards
Espen Harlinn
  Permalink  

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

  Print Answers RSS
0 Maciej Los 315
1 OriginalGriff 273
2 Aajmot Sk 224
3 Marcin Kozub 210
4 Richard MacCutchan 200
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web04 | 2.8.1411023.1 | Last Updated 5 Aug 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100