private void selectEmpsMyCombo_SelectedIndexChanged(object sender, EventArgs e) { Console.WriteLine("selectEmpsMyCombo_SelectedIndexChanged : " + selectEmpsMyCombo.SelectedIndex.ToString() + " " + selectEmpsMyCombo.Text); switch (selectEmpsMyCombo.SelectedIndex) { case 0: // current Emp dtEmp = emp1.Select("WHERE isQuitted != 1"); break; case 1: // quitted Emp dtEmp = emp1.Select("WHERE isQuitted = 1"); break; case 2: dtEmp = emp1.Select(); break; } bsEmp.DataSource = dtEmp; }