I want to add data to a gridview programmatically by looping through a collection. Something like:
List<MyClass> object_list = bdb.GetSoundexNames(txtFirstName.Text, txtMiddleName.Text, txtLastName.Text);
foreach (MyClass obj in object_list)
// I want to create the columns Firstname, middlename and lastname
Can someone please help me with the syntax?
Should I create the columns programatically too? Or should I just add some html code in the aspx page?