private void bind1()
{
con.Open();
da = new SqlDataAdapter("Select NationalityID,NationalityName from Nationality", con);
dt = new DataTable();
da.Fill(dt);
comboBox2.DisplayMember = "NationalityName";
comboBox2.ValueMember = "NationalityID";
comboBox2.DataSource = dt;
comboBox2.Refresh();
con.Close();
}
private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
bind1();
this code above work fine and retrieve data in combobox by load event but i need to work in selected index changed event combobox
Why not retrieve data in selected index changed event of combobox
and how i do that