[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 288
  • Last Modified:

VB.Net - Transfer Items from Listview to Listview Help

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.
  • 2
1 Solution
Luis PérezSoftware Architect in .NetCommented:
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.
adamchicagoAuthor Commented:
Roland, if I were to use a datagridview can you recommend some code that would work for this situation (described above)?

Thank you.
adamchicagoAuthor Commented:
Thanks for the comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now