Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can i create a grid in formview?
Posted

You can draw the grid by using GDI functions.
 
Share this answer
 
I am begginer to this. can you please explain to me in brief? or by some example.
 
Share this answer
 
Just place four static controls on your form,
like the MS Windows logo... :)
 
Share this answer
 
this is what i do not want to do. i do want proper GridView on FormView where i can display data in n-rows & n-column.
 
Share this answer
 
hmmm if i got you right then..

you can use panels..

whenever you would click any row on formview then you can pass that commandargument to database and you can show the records on gridview for
that commandargument and can keep that panel visible..


let me know if you got my point or else??
 
Share this answer
 
v7
Would be CListView your solution ? :)
CListView[^]
 
Share this answer
 
Yes Steve, i do want to display data on GridView on FormView and data is on the Key-Value basis. Do you have any idea how to do this?
 
Share this answer
 
v2
Why don't you simply add a grid control covering your full form view ? You can have a look at this article[^] for a nice grid control.
 
Share this answer
 
Cedric, I have a looked on this article. This article first creating CListCtrl and over this Grid View is coming.

I created GridView but not able to cover CListCtrl completely. Have you created any type of GridView using this posted example link? If yes, can you send your own code?
 
Share this answer
 
hey Cedric, I am trying from link which you had posted but i am not getting correct intiative to do this. Grid Control is not completely covering CFormview. I have used OnSize too.

Any other idea with example? :)
 
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