private void Electrical_Click(object sender, EventArgs e) { SampleDataContext db = new SampleDataContext(); dataGridView1.DataSource = db.EngineeringStudents.OfType <EEE>().ToList(); }
private void ComputerScience_Click(object sender, EventArgs e) { SampleDataContext db = new SampleDataContext(); dataGridView1.DataSource = db.EngineeringStudents.OfType <CSE>().ToList(); }