<StudentGroupList> <Group key = 1> <StudentItem> <Name> John </Name> <GroupName>1</GroupName> <StudentItem> <StudentItem> <Name> David</Name> <GroupName>1</GroupName> <StudentItem> </Group> <Group key = 2> <StudentItem> <Name> Ron</Name> <GroupName>2</GroupName> <StudentItem> </Group> </StudentGroupList>
public class StudentItem { public string Name {get; set;} public int GroupName {get; set;} } public class StudentGroupList { public List<StudentItem> lstStudnetItem = new List<StudentItem>(){get;set;} int key {get;set;} } public class StudentDataSource { public List<StudentGroupList> lstStudnetGroup = new List<StudentGroupList>() {get;set;} //Confusion in below line public static StudentDataSource objDataSource = new StudentDataSource(); }
Quote:please forgive my representation, its the first time i am writing on any blog for help.
public
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)