Click here to Skip to main content
15,892,805 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I would like to display a value in a combo box which is read only on grid edit command. The value depends on the selected value of another combo box.
I am doing something like this by using enum, but it is not working?
C#
if (cmbIncidentOutcome.SelectedValue.Split(SysXConsts.HYPHEN)[SysXConsts.ONE].Equals(IncidentOutComeContext.SUPPLIERNOTICE.GetStringValue()))
                   {
                      
                       cmbIncidentStatus.ClearSelection();
                       cmbIncidentStatus.SelectedValue = IncidentStatusContext.INCIDENTCLOSED.GetStringValue();
                   }
Posted
Updated 17-Dec-12 21:11pm
v2
Comments
Jibesh 18-Dec-12 3:14am    
where which method you are calling the above lines?

also check GetStringValue returns the correct value.

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