title: selecting Multiple row of items in a ListView
body: <p>I have a treeview which is in detail view. listview is populated with items and subitems which are in pair of 4 rows are related together. I have set <code>Name</code> property of each of rows in this 4 items the same.</p>
  
  <p>What I am looking for, is when user selects a row, all the 4 rows which have similar Name propety be selected (hilighted) automatically.</p>
  
  <p>What I have done so far is in below, but it does not compile!</p>
  
  <pre><code>private void resultSheet_SelectedIndexChanged(object sender, EventArgs e)
  {
      string name = resultSheet.SelectedItems[0].Name.ToString();
  
      ListView.ListViewItemCollection items = new ListView.ListViewItemCollection(resultSheet);
  
      foreach (ListViewItem item in resultSheet.Items)
      {
          if (item.Name.ToString() == name) 
          {
              items.Add(item);
          }
      }
  
      resultSheet.SelectedItems = items; //Does not compile 
  
  }
  </code></pre>