title: C# Set ListView item selected after inserting a new Item in winform
body: <p>I've the following code that Clones/makes a copy the selected ListView item, removes the Selected item, and then re-inserts the copied Item in a new position in the ListView.</p>
  
  <pre><code>private void btnUp_Click(object sender, EventArgs e)
  {
      if (listView1.SelectedItems.Count == 1)
      {
          int iIndex = listView1.FocusedItem.Index;
  
          if (iIndex &gt; 0)
          {
              ListViewItem oListViewItem = (ListViewItem)listView1.FocusedItem.Clone();
  
              listView1.Items.Remove(listView1.FocusedItem);
              listView1.Items.Insert(iIndex - 1, oListViewItem);
          }
      }
  }
  </code></pre>
  
  <p>The code works fine and the item is moved and the list updated.  However, I'm wanting the newly inserted Item to remain selected. I tried </p>
  
  <blockquote>
    <p>listView1.Items[iIndex - 1].Selected = true;</p>
  </blockquote>
  
  <p>but this doesn't have the desired affect.</p>
  
  <p>What else can I try ?</p>