lidds Posted November 9, 2004 Posted November 9, 2004 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: Quote
Varghjärta Posted November 9, 2004 Posted November 9, 2004 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. Quote
kejpa Posted November 10, 2004 Posted November 10, 2004 Could anyone please help with example code in vb.net on how to create a dropdown list within a listview column. Why not use a datagrid? There's a lot of articles on how to have a dropdown in a datagrid http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q is just one and a good place to find other tricks or treats ;) HTH /Kejpa Quote
SonicBoomAu Posted November 11, 2004 Posted November 11, 2004 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. Quote 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
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.