Register and join over 40,000 other developers!
Recent Topics
-
Tekken 7
IsrealJones - Mar 22 2021 07:21 AM
-
The Game You Are Waiting For?
WendellHarper - Dec 06 2020 01:21 PM
-
Quora and Reddit Backlinks
WendellHarper - Dec 06 2020 01:14 PM
-
Delete account
pindo - Jul 23 2020 01:33 AM
-
Print specific values from dictionary with a specific key name
Siten0308 - Jun 20 2019 01:43 PM
Recent Blog Entries
Recent Status Updates
Popular Tags
- networking
- Managed C++
- stream
- console
- database
- authentication
- Visual Basic 4 / 5 / 6
- session
- Connection
- asp.net
- import
- syntax
- hardware
- html5
- array
- mysql
- java
- php
- c++
- string
- C#
- html
- loop
- timer
- jquery
- ajax
- javascript
- programming
- android
- css
- assembly
- c
- form
- vb.net
- xml
- linked list
- login
- encryption
- pseudocode
- calculator
- sql
- python
- setup
- help
- game
- combobox
- binary
- hello world
- grid
- innerHTML

Expandable listview row in .NET
Started by Imless, Aug 22 2012 08:09 AM
row expandable listview heirarchy vb.net
8 replies to this topic
#1
Posted 22 August 2012 - 08:09 AM
Please I need idea on how to make an expandable listview row. As i click the row, it will expand ! Just need your help guys.
#2
Posted 22 August 2012 - 08:13 PM
Row? So what would the ones look like which are not expanded?
You're going to have to create your own ListView control to do this.
You're going to have to create your own ListView control to do this.
Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
#3
Posted 22 August 2012 - 11:44 PM
It sounds to me more like a treeview control, 
it does just what you want, you just need to learn how to customize the layout so you can see it as you need.
Here is the MSDN page for TreeView Control , you can find it in the toolbox, its easy to set up and use

it does just what you want, you just need to learn how to customize the layout so you can see it as you need.
Here is the MSDN page for TreeView Control , you can find it in the toolbox, its easy to set up and use
#4
Posted 23 August 2012 - 12:33 AM
Maybe Treelistview but ... I am looking for a result like this:
+ one | two | three |
- four | five | six
- seven | eight | nine |
+ ten | eleven | twelve |
Treeview cant do this I think.
+ one | two | three |
- four | five | six
- seven | eight | nine |
+ ten | eleven | twelve |
Treeview cant do this I think.
Edited by Imless, 23 August 2012 - 12:39 AM.
#5
Posted 23 August 2012 - 07:28 PM
Maybe Treelistview but ... I am looking for a result like this:
+ one | two | three |
- four | five | six
- seven | eight | nine |
+ ten | eleven | twelve |
Treeview cant do this I think.
A "TreeListView"..?
No, a TreeView control can do that.
Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
#6
Posted 24 August 2012 - 08:22 AM
Each root in Treeview can only have one node, i mean one column node. So it would just be like this:
+ one
| two |
| three |
+ four
+ one
| two |
| three |
+ four
#7
Posted 24 August 2012 - 05:14 PM
Each root in Treeview can only have one node, i mean one column node. So it would just be like this:
+ one
| two |
| three |
+ four
No..

That is a false statement. Quick example:
treeView1.Nodes.Add(new TreeNode("Node1")); treeView1.Nodes[0].Nodes.Add(new TreeNode("SubNode1")); treeView1.Nodes[0].Nodes[0].Nodes.Add(new TreeNode("ChildSubNode1")); treeView1.Nodes[0].Nodes[0].Nodes[0].Nodes.Add(new TreeNode("SuperChildSubNode1"));

Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
#8
Posted 26 August 2012 - 10:59 PM
-Node1
SubNode1 | ChildSubNode1 | SuperchildNode1
+Node2
+Node3
Is it possible Ace using Treeview?
Merging the 3 rows(Subnode, ChildSubnode and the supersubnode) in 1 row only.
SubNode1 | ChildSubNode1 | SuperchildNode1
+Node2
+Node3
Is it possible Ace using Treeview?
Merging the 3 rows(Subnode, ChildSubnode and the supersubnode) in 1 row only.
#9
Posted 27 August 2012 - 05:10 AM
-Node1
SubNode1 | ChildSubNode1 | SuperchildNode1
+Node2
+Node3
Is it possible Ace using Treeview?
Merging the 3 rows(Subnode, ChildSubnode and the supersubnode) in 1 row only.
Why would you do that though?
Here's what you initially said:
Each root in Treeview can only have one node
Which isn't true.
Instead of having them like that, what's wrong with just having them all as nodes?
Microsoft MVP (2012) - .NET Programming | ®Crestron DMC-T Certified Programmer
Also tagged with one or more of these keywords: row, expandable, listview, heirarchy, vb.net
Tutorial Forums →
Visual Basic Tutorials →
Visual Basic .NET Tutorial - How to add google maps in a VB programme Part 2/2 - codecall.netStarted by Cobus, 09 Feb 2016 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
Find & Replace in MenuStripStarted by Gooer, 21 Dec 2015 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
Program to give sum of all odd and even digitsStarted by Gooer, 09 Dec 2015 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
DSP (Digital Signal Processing) with VB.NetStarted by LoneRanger, 19 Aug 2015 ![]() |
|
![]() |
||
Language Forums →
Visual Basic →
I want to learn Visual Basic .Net 2013Started by Raja2921, 28 Jul 2015 ![]() |
|
![]() |
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download