private void comboBox5_SelectedIndexChanged(object sender, EventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); BindingSource Source = new BindingSource(); Source.DataSource = StudentsAffairsSystem.SearchDeptteacher(comboBox5.Text); dataGridView3.DataSource = Source; }
private void dataGridView3_CellContentClick(object sender, DataGridViewCellEventArgs e) { StudentsAffairsSystemServer.Service1 StudentsAffairsSystem = new StudentsAffairsSystemServer.Service1(); BindingSource Source = new BindingSource(); Source.DataSource = StudentsAffairsSystem.SearchDeptteacher(comboBox5.Text); dataGridView3.DataSource = Source; }