Binding custom list object properties to textbox from code behind
问题 Student class public class Student { string name; List<SubjectInfo> subjectInfoList; .... } List<SubjectInfo> List can have different number of SubjectInfo objects for different students. SubjectInfo class public class SubjectInfo { string subjectCode; int marks; ... } I want to display student object detail on a window. Since List have different number of object count I generated these from code behind. int i = 10; foreach (SubjectInfo info in student.SubjectInfoList) { TextBox tb = new