title: Can't see ListViewItems added programatically to a ListView in a UserControl?
body: <p>I have a ListView in a user control in details mode with one column. I've added an item through the designer and it displays fine. However, anything I add programatically just doesn't show up in the list. The ListView.Items.Count property is correct though.</p>
  
  <p>I've copied the adding code and list view into the main form and everything displays fine.</p>
  
  <pre><code>// user control
  public void AddFiles(IEnumerable&lt;string&gt; files)
  {
      // this doesn't work - list view doesn't show any new files
      ListViewItem[] items = files.Select(file =&gt; new ListViewItem(file)).ToArray();
      listView1.Items.AddRange(items);
  }
  
  // main form
  private void AddFiles(IEnumerable&lt;string&gt; files)
  {
      // call to the user control
      fileList.AddFiles(files);
  
      // test code works correctly - can see the added files in the list view
      ListViewItem[] items = files.Select(file =&gt; new ListViewItem(file)).ToArray();
      listView1.Items.AddRange(items);
  }
  </code></pre>