title: Accessing elements of List<List<string>>
body: <p>Can anyone let me know how can access an element of a list that has been added to a list of list.
  I'll mention the code.</p>
  
  <pre><code>List&lt;string&gt; str = new List&lt;string&gt;();
  List&lt;List&lt;string&gt;&gt; stud = new List&lt;List&lt;string&gt;&gt;();
  </code></pre>
  
  <p>A method has been defined that inserts data into str and after the method gets over.</p>
  
  <pre><code>stud.Add(str);
  </code></pre>
  
  <p>The method and stud.Add(str) is on a button click......
  so, each time str contains different data.......</p>
  
  <p>the problem is I want to search in whole of stud i.e. all the str created, whether 
  str[0]==textBox3.Text;</p>
  
  <p>I'm confused in the For loops...how to reach to all the str[0] in stud to verify the condition.</p>