Accessing elements of List<List<string>>
- by shiv09
Hello Friends...........
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............
List str = new List();
List stud = new List();
A method has been defined that inserts data into str and after the method gets over.........
stud.Add(str);
The method and stud.Add(str) is on a button click......
so, each time str contains different data.......
the problem is I want to search in whole of stud i.e. all the str created, whether
str[0]==textBox3.Text;
I'm confused in the For loops...how to reach to all the str[0] in stud to verify the condition...................