dropdown in listview...

lidds

Junior Contributor
Joined
Nov 9, 2004
Messages
210
Could anyone please help with example code in vb.net on how to create a dropdown list within a listview column.

i.e
If I have a listview which displayed the following(Name being one column and Access being the second):

Name Access
-------------------
Simon User
Bob User
Fred Admin
John User

But I wanted it so when the user identifies the Access column a dropdown list appears displaying 'User' and 'Admin'

Example of code would be greatly appreshiated.

Thanks

Simon :confused:
 
I only speak C# unfortunatly :).

But what I guess you need to do is provide a way of hosting a control in a SubItem. I've nver done such personally, but I know there's articles on the subject over at CodeProject(.com), I know there's C# code there atleast. But if you need it badly perhaps you could try and port it. Or use the control as a dll and load it into your VB project.

I myself will be needing somethign simular in the near future, but I want a progressbar, and my first stop will be to search over there for clever ideas.
 
Back
Top