473,385 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Listview with column item's as tree's

How do I add the ability to combine listview with treeview? I want to have a
list view but with some items in some columns to have the ability to act as
a tree instead of just a single item. (like, say, how outlook express does
it with its message headers)

Is it possible with ListView? I haven't been able to find anything that
mentions how to do it.

Thanks,
Jon
Mar 26 '08 #1
3 2397
Start with these:
http://www.google.co.uk/search?hl=en&q=treelistview
http://groups.google.co.uk/groups?hl...-8&sa=N&tab=wg

/claes
"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:LO***************@newssvr27.news.prodigy.net. ..
How do I add the ability to combine listview with treeview? I want to have
a list view but with some items in some columns to have the ability to act
as a tree instead of just a single item. (like, say, how outlook express
does it with its message headers)

Is it possible with ListView? I haven't been able to find anything that
mentions how to do it.

Thanks,
Jon

Mar 26 '08 #2

"Claes Bergefall" <cl*************@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
Start with these:
http://www.google.co.uk/search?hl=en&q=treelistview
http://groups.google.co.uk/groups?hl...-8&sa=N&tab=wg

/claes

I don't really want to use an external control. Are you saying that its
impossible to do it with the standard listview?
Mar 26 '08 #3

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message
news:tS****************@newssvr22.news.prodigy.net ...
>
"Claes Bergefall" <cl*************@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP02.phx.gbl...
>Start with these:
http://www.google.co.uk/search?hl=en&q=treelistview
http://groups.google.co.uk/groups?hl...-8&sa=N&tab=wg

/claes


I don't really want to use an external control. Are you saying that its
impossible to do it with the standard listview?
How do you define an external control? The .NET listview control does not
provide this out of the box. You will need to inherit it and do a bunch of
P/Invoke stuff (start by looking at the LVITEM structure, specifically the
iIndent member). The links above should lead you to several implementations
that does exactly that (complete with source). Treat them as samples if
you'ld like...

/claes
Mar 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: John Lauwers | last post by:
I know you can edit the first column of the listview control, is there a way to edit the second and/or the other columns? greets John
6
by: Richard | last post by:
Hi. I use a ListView to display data in tabular form. Each ListView row corresponds to a data record. The ListView Item of the record is the record key or code. Each SubItem in that row...
6
by: VM | last post by:
How can I fill up a listview with text file contents? My listview has two columns and the first column fills up with a while loop: while (myString != null) { myString = sr.Readline();...
0
by: Andrew | last post by:
If item is a ListViewItem and str is a string, why do the following two lines not have the same effect ? item.SubItems.Add(new ListViewItem.ListViewSubItem()).Text = str;...
3
by: Rob Richardson | last post by:
Greetings! I am attempting to display data in tabular form using a ListView control in detail mode. This is for a program I originally wrote in VB6. In VB6, I would add an item to the...
12
by: Dennis | last post by:
I have a form which has a ListView control named ListView1 added at design time. When I add items using the following code, they don't appear in the list view. However, if I create a ListView...
4
by: Steph. | last post by:
I have a List view displaying data in Detail mode with several columns. How I can get the column index the user clicked on ? (when user click on an item inside the ListView, not on a column...
1
by: Joe | last post by:
I set up two columns in listview. I use Add to add items, but how do I access the second column? and add text?
3
by: Martin Panggabean | last post by:
Hello All, I've kind a logic problem ... I want to fill the listView control in VB.NET with data in my mySql table using Datareader object component. But It seems that the way of how listView...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.