Display 2 lines in ListView column

  • Thread starter Thread starter Alan T
  • Start date Start date
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?
 
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.
 
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.
 
Back
Top