Display 2 lines in ListView column

A

Alan T

I want to display 2 lines in a column of a listview.
eg. in the second column to display

John
Mary

Can I do that?
 
D

Duggi

Hi Alan,

I did not actually get your question, how ever I think I can help you
out by giving some information I know..

For the listview control has a property, Columns, which can be edited
through "Edit Columns", if you are using 2005 IDE. I think this would
be a good starting point for you atleast to go forward.
 
A

Alan T

I am using VS2005 and yes by going into the the individual column properties
windows.
Which property I can configure to do that ?

I tried to use:
listviewitem.SubItem[1].Add("John" + "\r\n\" + "Mary")

but it give me a strange vertical rectangle between John and Mary.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top