Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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:

Posted

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.

Posted

Have you had a look at the Microsoft 101 examples???

 

http://www.microsoft.com/downloads/details.aspx?FamilyId=08E3D5F8-033D-420B-A3B1-3074505C03F3&displaylang=en

 

They have a username password datagrid that might be of some help.

Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

-- Rick Cook, The Wizardry Compiled

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...