By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,290 Members | 1,263 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,290 IT Pros & Developers. It's quick & easy.

listView with multiline columnHeader

P: n/a
Hi,
ca we have a listView with 2 header lines
eg: | country1 | country2 |...
|-----------|---------------------|---
|city1|city2 |city3|city4|city5|city6|...
Thanks

Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Sure, but you will need to concatenate the strings for city1 and city2 and
city3,4,5 and add the first set as ListViewItem and the second set as
ListviewSubItem.

Make sure the Listview View property is set to details.

Just define the Column in the Designer

HTH,

Bill
"touf" <to******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
ca we have a listView with 2 header lines
eg: | country1 | country2 |...
|-----------|---------------------|---
|city1|city2 |city3|city4|city5|city6|...
Thanks

Nov 20 '05 #2

P: n/a
Hi, thanks for your answer
but didn't understand, What I need is to have 2 lines in the header not in
the data
another example

2002 2003
period1 period2 period3 period1 period2 period3 period4
product1 100 150 100 120 130 110 100
product2 50 52 49 60 20 30 25
product3 1000 1000 1200 1200 1100 1200 1200


"William Ryan" <do********@comcast.nospam.net> wrote in message
news:OR**************@TK2MSFTNGP09.phx.gbl...
Sure, but you will need to concatenate the strings for city1 and city2 and
city3,4,5 and add the first set as ListViewItem and the second set as
ListviewSubItem.

Make sure the Listview View property is set to details.

Just define the Column in the Designer

HTH,

Bill
"touf" <to******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
ca we have a listView with 2 header lines
eg: | country1 | country2 |...
|-----------|---------------------|---
|city1|city2 |city3|city4|city5|city6|...
Thanks


Nov 20 '05 #3

P: n/a
Hello,

"touf" <to******@hotmail.com> schrieb:
ca we have a listView with 2 header lines
eg: | country1 | country2 |...
|-----------|---------------------|---
|city1|city2 |city3|city4|city5|city6|...


Maybe this can be done with custom drawn column headers (not easy):

http://www.google.de/search?q=cache:...hl=de&ie=UTF-8

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.