Exemplo n.º 1
0
        private void ViewAllStudentsButton_Click(object sender, RoutedEventArgs e)
        {
            StudentsDataGrid.Items.Clear();

            StudentService      student = new StudentService();
            List <StudentModel> stList  = student.AlphabeticalOrderByCourse();

            foreach (StudentModel st in stList)
            {
                StudentsDataGrid.Items.Add(st);
            }
        }