473,473 Members | 2,169 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

listView with multiline columnHeader

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

Nov 20 '05 #1
3 6959
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Wiktor Zychla | last post by:
today we've found a critical issue regarding the ListView from Windows.Forms. it was confirmed on several machines with Win2K and XP. here's the problem: create a ListView with about 50000 rows....
2
by: Sagaert Johan | last post by:
Hi I have set the columreorder to true Is there a way to get/set the current columnorder, so i can restore the order from a saved setting ? Johan
6
by: Vanessa | last post by:
With this program I can do one selection, but upon the second I get an error where ///////////////// is indicated. Please help. using System; using System.Drawing; using System.Collections;...
4
by: Paddy | last post by:
How do I select a subitem from a listview after clicking on the first column? Couldn't find it in MSDN. Thank you. Paddy.
0
by: Zac Maclean | last post by:
I have a working version of this in VB, tryign to translate everything over to C#. In the C# version this is filling the listview, the first couple columns are ok, but the last few are going...
19
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
12
by: Mike Smith | last post by:
Hey anyone knows how to find an item in a list view based on text ? Cant seem to get the IndexOf method working. would the LVM_FINDITEM method using SendMessage API work in .Net ?
21
by: StriderBob | last post by:
Situation : FormX is mdi child form containing 2 ListViews ListView1 contains a list of table names and 4 sub items with data about each table. ListView2 contains a list of the columns on each...
0
by: Brian Henry | last post by:
Ok whats going on here... got a couple problems... this is relevant now to this group since .NET 2.0 is finally RTM 1) draws really slow when making it a large form (resizing speed is jerky) to...
2
by: justdo | last post by:
Hi, I am writing the unit test for our application. It use "listview component" in some functions. The following code work fine and get c = 1 in Windows Application mode, but fail in unit test...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.