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");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top