Bind selected value on combobox to view model

Posted by Shaggy on Stack Overflow See other posts from Stack Overflow or by Shaggy
Published on 2010-05-12T13:48:22Z Indexed on 2010/05/14 10:14 UTC
Read the original article Hit count: 354

Hi,

I have my silverlight app which pulls data into a datagrid from a view model. The vm is exposed via Mef. I also have a details grid which has comboboxes. The vm also contains the data to populate the combobox values. Upon first load, everything works fine and the selected items on te comboboxes are correct and I can select alternative values. However, if I sort my main data grid (allow sort=true) then I find the binding for selected value on the comboboxes dissapear. The combobox is still populated with data but nothing is selected.

Has anyone come across this issue before? I am unsure how to solve this one.

Thanks

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about mvvm-light