listviewguy
listviewguy

Reputation:

VB.NET WinForms ListView Question

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!

Upvotes: 0

Views: 1067

Answers (2)

NascarEd
NascarEd

Reputation: 1390

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

Upvotes: 0

KV Prajapati
KV Prajapati

Reputation: 94653

Dim item as New ListViewItem(new String(){"One","Two","Three"})
ListView1.Items.Add(item)

Upvotes: 2

Related Questions