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...
private void cbCompany_SelectedIndexChanged(object sender, EventArgs e)
{
this.cmpLocationTableAdapter.FillLocbyCmp(this.shahiemsDataSet.cmpLocation, cbCompany.SelectedText.ToString());
cbLocation.DataSource = shahiemsDataSet.cmpLocation;
}
Continue reading...