VB.Net - Transfer Items from Listview to Listview Help

Posted on 2010-01-05
Last Modified: 2012-05-08
Experts: please help me figure out the best way to do this...if it's possible.

Currently I have two listviews...Listview1 has a list items that the user can double click on to move to the the 1st column of the empty Listview2...this works fine.  What I need to do now is to add two more columns to Listview2 that the user needs to have the ability to edit.  Specifically, Listview2 has 3 columns with the following characteristics:

- Column1: items come from Listview1 and the column is locked so the user cannot edit (this part is completed)
- Column2: items are to be keyed-in by the user after an item has been added to column1 so the column should be unlocked (not done...need help with this)
- Column3: each row should have a drop down with a list of item names that were keyed into column2 (not done...need help with this)

Is this possible?  How do I do this keeping in mind I have Column1 of Listview2 working but not columns2 & 3?

While I've built this using Listviews I'm not wetted to them...maybe a datagridview is better or some other control?

Thank you.
Question by:adamchicago
    LVL 25

    Accepted Solution

    Listview columns text cannot be edited, only the text for each item can be edited, which corresponds to the first column of a listview in Details view. Consider to use another control, as a DataGridView or any 3rd party.

    Hope that helps.
    LVL 1

    Author Comment

    Roland, if I were to use a datagridview can you recommend some code that would work for this situation (described above)?

    Thank you.
    LVL 1

    Author Closing Comment

    Thanks for the comment

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now