combobox2_selectedindexchange
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e) { if (string.IsNullOrEmpty(comboBox4.Text)) { MessageBox.Show("From should not be empty"); } else { comp.FROM = Convert.ToInt32(comboBox4.Text); } if (string.IsNullOrEmpty(comboBox5.Text)) { MessageBox.Show("To Should not be empty"); } else { comp.TO = Convert.ToInt32(comboBox5.Text); } DataTable result = inter.getapplicationinformationstage1(comp); dataGridView1.DataSource = result; }
combobox1
combobox2
comboBox2_SelectedIndexChanged
OnSelectedIndexChanged
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)