Populate combobox2 From database WHERE combobox1.text = something

  • Thread starter Thread starter Mohammad Zubair
  • Start date Start date
M

Mohammad Zubair

Guest
I want to populate combobox2 from database WHERE combobox1.text = something. Here is the code I have and also I am using datable so I want to keep it that way


private void cbCompany_SelectedIndexChanged(object sender, EventArgs e)
{
this.cmpLocationTableAdapter.FillLocbyCmp(this.shahiemsDataSet.cmpLocation, cbCompany.SelectedText.ToString());
cbLocation.DataSource = shahiemsDataSet.cmpLocation;
}

Continue reading...
 
Back
Top