title: Add item to Listview control
body: <p>I have a <code>listview</code> in c# with three columns and the view is details. I need to add a item to each specific column but I am having a hard time with this. I have tried several things. Here is what I got so far. Thanks for any help in advance.</p>
  
  <pre><code>// Add the pet to our listview
  ListViewItem lvi = new ListViewItem();
  lvi.SubItems.Add(pet.Name);
  lvi.SubItems.Add(pet.Type);
  lvi.SubItems.Add(pet.Age);
  
  listView.Items.Add(lvi);
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/PXQ78.png" alt="Here is the result"></p>