Example #1
0
        private void ClearStudentGradesDataSource()
        {
            var emptyStudentGradesList = new List <StudentGrade>();

            GradesListView.DataSource = emptyStudentGradesList;
            GradesListView.DataBind();
        }
Example #2
0
        protected void CourseDetailsEntityDataSource_Selected(object sender, EntityDataSourceSelectedEventArgs e)
        {
            var course = e.Results.Cast <Course>().FirstOrDefault();

            if (course != null)
            {
                var studentGrades = course.StudentGrades.ToList();
                GradesListView.DataSource = studentGrades;
                GradesListView.DataBind();
            }
        }