Hi.....
I use more than one combo box in my project
when i select one value in one combo than all combo value is selected same.
how to solve it?
I use same data source in all combo
Please reply......
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manas MohapatraRank #182 · 13.2K reputationPosted Sep 10, 2015, 10:10 AM EDT
Prem Anandh JRank #8,962 · 213 reputationPosted Sep 10, 2015, 8:36 PM EDT
{
//Combo1
comboBox1.Items.Add("C#NET"); comboBox1.Items.Add("ASP.NET");
comboBox1.Items.Add("VB NET"); comboBox1.Items.Add("J#");
//Combo2
comboBox2.Items.Add("C#NET"); comboBox2.Items.Add("ASP.NET");
comboBox2.Items.Add("VB NET"); comboBox2.Items.Add("J#");
//Combo3
comboBox3.Items.Add("C#NET"); comboBox3.Items.Add("ASP.NET");
comboBox3.Items.Add("VB NET"); comboBox3.Items.Add("J#");
//Combo4
comboBox4.Items.Add("C#NET"); comboBox4.Items.Add("ASP.NET");
comboBox4.Items.Add("VB NET"); comboBox4.Items.Add("J#");
}
{
comboBox2.SelectedIndex = comboBox3.SelectedIndex=comboBox4.SelectedIndex=comboBox1.SelectedIndex;
}
Ankita parmar3 reputationPosted Sep 11, 2015, 4:04 AM EDT
I chose different value in all combo box not same.
Thanks