I have the following data structure:
public class StudentScore {
public string ScoreValue{ get; set; }
}
public class Student {
public string StudentName { get; set; }
//Scores.Count will be = EndDate-StartDate
public ObservableCollection<StudentScore> Scores { get;set; }
}
ObservableCollection<Student> Students { get; set; }
public DateTime StartDate { get; set; } //Can be changed by user dynamically
public DateTime EndDate { get; set; } //Can be changed dynamically
What i am interested to achieve in WPF DataGrid/DevExpress GridControl is as follows:
Column 1 is always fixed, which is student name and remaining columns will be only based on the number of Scores and each row should populate the student name and scores.
And each cell should have a two way binding where user can edit the score to reflect back in the actual VM property.

I tried to set the AutoGenerateColumns property to true - it generates only two columns because I have only StudentName and Scores properties. So i need some thing that can generate columns from collection for each row.