Home > DeveloperSection > Forums > DropDown List Selection
jayprakash sharma
jayprakash sharma

Total Post:117

Posted on    August-23-2014 7:30 AM

 C# C# 

 1 Reply(s)
 612  View(s)
Rate this:

I have three DropDown List Controls.each dropdown contains the static values 1,2,3,4 what i need to do is when a item is selected on the first dropdown(on SelectedIndexChanged Event) same items should be selected in other two dropdowns

Sumit Kesarwani

Total Post:378

Posted on    August-23-2014 8:53 AM

Hi Jay, 

All you need to do is set the SelectedIndex of your other drop down lists like this:

protected void DropDownList1SelectedIndexChanged(Object sender, EventArgs e)


   dropDownList2.SelectedIndex = dropDownList1.SelectedIndex;

   dropDownList3.SelectedIndex = dropDownList1.SelectedIndex;


Don't want to miss updates? Please click the below button!

Follow MindStick