title: How to fill a list view with the contents of List<string> in C#
body: <p>I've a list </p>
  
  <pre><code>    List&lt;String&gt; SampleList=new List&lt;String&gt;();
  </code></pre>
  
  <p>I need to fill a listView with the contents of the list</p>
  
  <p>For example the "SampleList" contains</p>
  
  <pre><code> a
   b
   c
   d
  </code></pre>
  
  <p>The listView should be filled like</p>
  
  <pre><code> S.No         Item
  
    1             a
    2             b
    3             c
    4             d
  </code></pre>
  
  <p>Now i'm using for loop for this method</p>
  
  <p>like</p>
  
  <pre><code>for(int i=0;i&lt;SampleList.Count;i++)
     {
       listView1.Items.Add((i+1).ToString());
       listView1.Items[i].SubItems.Add(SampleList[i]);
     }
  </code></pre>
  
  <p>is there any other way to do this like data binding ?</p>
  
  <p>Thanks in advance</p>