WPF: ComboBox DisplayMemberPath is suddenly not shown anymore ?

Posted by msfanboy on Stack Overflow See other posts from Stack Overflow or by msfanboy
Published on 2010-05-15T20:34:50Z Indexed on 2010/05/15 20:44 UTC
Read the original article Hit count: 440

Filed under:
|
|
|
|

Hello,

in my ComboBox I see 3 times this: MyNameSpace.ViewModel.CustomerViewModel ??

Actually this code worked but now don`t know what I changed:

      <ComboBox  DisplayMemberPath="{Binding Path=CustomerName}" SelectedIndex="0" ItemsSource="{Binding CustomersViewModel}" />

Customers is a ObservableCollection

The same code works fine with a ListBox just using DisplayMemberBinding instead of DisplayMemberPath.

What is wrong?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about combobox