I can’t find an answer anywhere… I have a List<string[]> populated like this:
...
while (myReader.Read())
{
string[] row = new string[myInt];
for (int i = 0; i < myInt; i++)
{
row[i] = myReader[i].ToString();
}
myList.Add(row);
}
...
How do I bind this list to a gridview with TemplateField columns?
An easier way is to create an anonymous class and bind that to your GridView. Example: