Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello Everyone

I have 3 dropdownlist : ddl,ddl2,ddl3.
It contains values like ddl1 :A1,A2,A3
ddl2:B1,B2,B3
ddl3:C1,C2,C3

I want the user to select values as A1,B1,C1.
In case if the user selects A1,B1,C3 it should display an error stating the user should select A1,B1,C1 before any other combinations.

Do any one have solutions for this.
I want this to be done using c#.

What I have tried:

Could not find anything related to the above condition.
Tried to combine the solutions here and there
but could not succeed.





Not found any solutions.
Posted
Updated 18-Apr-17 5:54am

1 solution

Read it first : ComboBox.SelectedIndexChanged Event (System.Windows.Forms)[^]

Now check on the third Drop Down's selected index change event whether the 3 values are A1,B1,C1 or not.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900