Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I set the DisplayMemberPath of a combobox as well as the ItemsSource, now i'm trying to retrieve the selectedText that is displayed but there is no selectedText property. I tried

string s = comboBoxItem.SelectedItem.ToString();

but i'm getting a weird value. How do I retrieve the Displayed value of the comboBox

share

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.