Click here to Skip to main content
16,022,259 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
In comobox when we are binding from a list we are getting the values but are not able to see the text visually in combobox.
<ComboBox Height="23" HorizontalAlignment="Center" Name="comboidentified"   VerticalAlignment="Top" Width="154" TabIndex="10" Margin="132,419,354,0" />

and we are binding it:
List<custIdentifiedtype> custident = new List<custIdentifiedtype>();
custident = e.Result;
comboidentified.ItemsSource = custident;
comboidentified.DisplayMemberPath = "Cust_Identifeiddesc";
comboidentified.SelectedValuePath = "Cust_Typeid";

Thanks,
swapna
Posted
Updated 3-Feb-11 0:59am
v3
Comments
k.swapna 3-Feb-11 9:11am    
Ya I Got it
Instead of
comboidentified.DisplayMemberPath = "Cust_Identifeiddesc";
it should be Cust_Identifieddesc

1 solution

Resolved by OP himself.

Posted by OP:
Ya I Got it. Instead of:
comboidentified.DisplayMemberPath = "Cust_Identifeiddesc";it should be Cust_Identifieddesc
 
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