title: Select a row in listview
body: <p>I am web developer , working on a part of my project developed in WinForms. So my question could be a basic one. Try to bear with it.</p>
  
  <p>I have two list views on my page and a remove button that works for both.</p>
  
  <p>Problems.</p>
  
  <ol>
  <li>I am not able to select a row in both the list view when I run my program, may be some property needed for it?</li>
  <li>If I am able to select the row I want to detect which list view item has been selected, so how would I do that?</li>
  <li><p>I have three columns and have bound the data by using the code below.</p>
  
  <pre><code>    listView1.Columns.Add("ID",20);
      listView1.Columns.Add("Name",40);
      listView1.Columns.Add("Mobile",40);
  
  
      foreach (var item in dataList)
      {
          newItem = new ListViewItem();
          newItem.SubItems.Add(item.ID.ToString());
          newItem.SubItems.Add(item.Name);
          newItem.SubItems.Add(item.Mobile.ToString());
          listView1.Items.Add(newItem);   
      }
  </code></pre></li>
  </ol>
  
  <p>but the <code>ID</code> column is left blank and the data starts to bind in these sense.</p>
  
  <pre><code>ID Name Mobile
     1    abc
     2    xyz
  </code></pre>
  
  <p>So how do I properly show the data?</p>
  
  <ol start="4">
  <li>Lastly I want to use my <code>ID</code> column to delete the data.  So if I give <code>width=0</code>, is this the best way to hide a column?</li>
  </ol>