Say I have some Student class:
class Student {
string Name { get; private set; }
int[] Assignments { get; set; }
char Grade { get { return Assignments.Sum() > 300 ? 'P' : 'F'; } }
}
where there is some known, constant, but impractically large number of assignments per student.
I'd like to represent the student's grades in a "Gradebook" app using a DataGrid, where there's a column for the students name, current pass/fail status, then the scores for each assignment, without creating a column for each assignment manually.
Is this possible?