943,640 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 1668
  • VB.NET RSS
Sep 25th, 2009
0

Groups in Listvew

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
A.Najafi is offline Offline
8 posts
since Sep 2009
Sep 25th, 2009
0

Re: Groups in Listvew

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.
Reputation Points: 84
Solved Threads: 48
Posting Whiz
TomW is offline Offline
342 posts
since Sep 2009
Sep 25th, 2009
1

Re: Groups in Listvew

how about using a treeview instead?
Featured Poster
Reputation Points: 208
Solved Threads: 168
Practically a Master Poster
GeekByChoiCe is offline Offline
692 posts
since Jun 2009
Sep 26th, 2009
0

Re: Groups in Listvew

Hi,
Thanks allot.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
A.Najafi is offline Offline
8 posts
since Sep 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Please Help DATABASE SEARCHING
Next Thread in VB.NET Forum Timeline: How can i add button to all active inspector?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC