title: How to make selected color the background color in listview
body: <p>How can I make the background color the selected color of a selected row in List View object using vb.net. </p>
  
  <p>I did saw an example with the Ownerdraw set to true - but it messes up the column header. Although I was able to loop through the sub items to make the row selected color the back color </p>
  
  <p>Here's the Code block :</p>
  
  <pre><code>  For i = 0 To LV_ProductsEdit.SelectedItems.Item(0).SubItems.Count - 1
          LV_ProductsEdit.SelectedItems.Item(0).SubItems(i).BackColor = Color.Gold
     Next
  </code></pre>
  
  <p>I have a similar loop that reverts it to the original transparent color when the new item is selected.</p>
  
  <p>Any thoughts.</p>
  
  <p>Thanks</p>
  
  <p>Omer</p>