title: Adding every new string to an existing list Of Stings
body: <p>I am trying to add the <code>templateFields</code>' values of my gridview into a <code>List(Of String)</code>. Those <code>templateFields</code> consist of 2 <code>Labels</code>. What I am trying to achieve is </p>
  
  <ol>
  <li><p>To be able to loop through every row of the <code>GridView</code>, getting the repetitive templateField values.</p></li>
  <li><p>Store the row's <code>TemplateFields1</code> values in a string.</p></li>
  <li><p>Add that string into a list of strings. </p></li>
  </ol>
  
  <p>Here's my code:</p>
  
  <pre><code>For Each row As GridViewRow In GridView1.Rows`
      Dim stri As String
      Dim ttt As Label = DirectCast(row.FindControl("Title"), Label)
      Dim desc As Label = DirectCast(row.FindControl("lblDescription"), Label)
      stri = ttt.Text.ToString &amp; desc.Text.ToString
      Dim list As New List(Of String)
      While (stri &lt;&gt; Nothing) 
          list.Add(stri)  ' Add every new string in a new index of the list 
      End While
  Next
  </code></pre>
  
  <p>So in the <code>while</code> loop, take <code>stri</code> store it in <code>list(0)</code> and then continue the <code>for loop</code>, get the next <code>stri</code> and store it in a new index of <code>list(1)</code> while keeping <code>list(0)</code> and so on until all <code>templateField stri</code> is completed. </p>
  
  <p>Any thoughts or suggestions ? </p>