public List<StudentInfo> studentinfos; public List<StudentInfo> StudentInfos { get { return studentinfos; } set { studentinfos = value; this.RaisePropertyChanged("StudentInfo"); } } public class StudentInfo { public int stuId{get;set;} public string stuName{get;set;} public int subId{get;set;} public int subMark{get;set;} public string subName{get;set;} } public void RowSelectedItem() { if (selecteddashitem != null) { List<StudentInfo> studentList = new List<StudentInfo>(); foreach (var cell in selecteddashitem.Cells) { foreach (var student in cell.Students) { studentList.Add(new StudentInfo { stuId=cell.stuId, stuName = cell.Name, subId=student.subId, subMark = student.Mark, subName=student.SubName }); } } StudentInfos = studentList; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)