using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Business;
Guys, I want to populate the DataGridview with a dataset I have created but I am having problem and I would be thankful if you help me what went wrong. This is the message I am getting "Error 1 The type or namespace name 'Student' could not be found (are you missing a using directive or an assembly reference?"
Thanks.
namespace School
{
/// <summary>
/// Interaction logic for ViewStudents.xaml
/// </summary>
public partial class ViewStudents : Window
{
public ViewStudents()
{
InitializeComponent();
}
private void Window_Loaded(object sender, RoutedEventArgs e)
{
SchoolData dt = new SchoolData();
List<Student> students = (from s in dt.Student
select s).ToList();
StudentGrid.ItemsSource = students;