Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got an application in vc++ to draw a table with content.for that i fixed a listcontrol and insert item using InsertItem() method.But the problem is that it is aligned in simple list format.How can I add line or separate each cell with a separator(line) so that it looks like a table.I am a new comer in this domain.plzz help me.Thanks in advance....
Posted

You can always use the extended style LVS_EX_GRIDLINES... search fo it and you will see how to do it really easily.

Apart from that, you can always take a look at the articles that you can find here in :bob:... as an example:

Article from Matt Weagle[^]: Using the List Control[^]

HTH! :thumbsup:
 
Share this answer
 
You can set boarders like upper and buttom boarders.
 
Share this answer
 
Comments
Sandeep Mewara 18-May-11 4:40am    
Comment from OP:
What do you mean??I didnt get you..Can you clarify this.Is this upper and lower is a property?I didint see any properties which for setting borders...Plzz let me know wht you said...

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