0

I have a ListView with 3 columns, how do I add specified text to the specified column I want? I've looked at the ..Add function, but it doesn't take the column index.. Thanks!

2
  • It might help if you added the code that you already have (where you create the columns for the ListView) Commented Aug 4, 2009 at 1:46
  • Well I do it via the GUI Builder in Microsoft Visual Studio. So the code is auto generated. Commented Aug 4, 2009 at 1:50

2 Answers 2

2
Dim item as New ListViewItem(new String(){"One","Two","Three"})
ListView1.Items.Add(item)
Sign up to request clarification or add additional context in comments.

Comments

0

ListViewItem has a SubItems property that you can use to set the text of a specified column.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.