Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Populate combobox2 From database WHERE combobox1.text = something

$
0
0

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;
        }



Viewing all articles
Browse latest Browse all 2535

Trending Articles