Groups in Listvew

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2009
Posts: 8
Reputation: A.Najafi is an unknown quantity at this point 
Solved Threads: 0
A.Najafi A.Najafi is offline Offline
Newbie Poster

Groups in Listvew

 
0
  #1
Sep 25th, 2009
Hi All,
Can I have a Listvew in which Groups have ability to expand or shrink?
Now I Generate a Listviw in which groups are expand always, in Vb.Net.
for i as integer=0 to Number
'Add Items
ListView1.Items.Add(i)
'Add tow SubItems
ListView1.Items(i).SubItems.Add(1)
ListView1.Items(i).SubItems.Add(2)
next
'Generat a Group
ListView1.Groups.Add(New ListViewGroup("BaSalam",
HorizontalAlignment.Left))
'Add Items to Group
For j = 0 To clsShareParam.NumPoint - 1
ListView1.Items.Item(i).Group = ListView1.Groups(1)
Next
Last edited by A.Najafi; Sep 25th, 2009 at 9:47 am.
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 320
Reputation: TomW is on a distinguished road 
Solved Threads: 44
TomW TomW is offline Offline
Posting Whiz

Re: Groups in Listvew

 
0
  #2
Sep 25th, 2009
No, there is no built in functionality in .Net for adding these features to a listview control. Although if you google the subject you can find some examples where people added coding in an attempt to add these features but I wouldnt even recommend it; all the ones I looked at were very buggy and caused memory problems. You would be better off purchasing a 3rd party control if this is a must have feature or looking for a different control that fits your needs.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 269
Reputation: GeekByChoiCe is on a distinguished road 
Solved Threads: 53
GeekByChoiCe GeekByChoiCe is offline Offline
Posting Whiz in Training

Re: Groups in Listvew

 
1
  #3
Sep 25th, 2009
how about using a treeview instead?
Reply With Quote Quick reply to this message  
Join Date: Sep 2009
Posts: 8
Reputation: A.Najafi is an unknown quantity at this point 
Solved Threads: 0
A.Najafi A.Najafi is offline Offline
Newbie Poster

Re: Groups in Listvew

 
0
  #4
Sep 26th, 2009
Hi,
Thanks allot.
Reply With Quote Quick reply to this message  
Reply

Tags
listview

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for listview
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC