specifying column to write in ListView

  • Thread starter Thread starter Vaughn
  • Start date Start date
V

Vaughn

I have a listview with two columns that is supposed to show the contents of
two files.
I the 1st column, I just display it with listView1.Items.Add ("Test") and a
While loop, but how can I tell C# to write in the second Column?

Thanks.
 
After you add the item, add a subitem. Make sure the ListView is set to
Details

ListViewItem item = new ListViewItem("Test");
item.SubItems.Add("SecondColumnValue");
 
Back
Top