When I bind a SubSonic 3 produced IQueryable result to the ItemsSource of a WPF ComboBox or DataGrid, I'm unable to change the selected item in the ComboBox or the DataGrid more than once. I'm using SubSonic 3.0.0.3 and ActiveRecord.
Here's an example:
In my code:
var foo = FooDB.Customer.All();
FooComboBox.ItemsSource = foo;
In my xaml:
<ComboBox DisplayMemberPath="CustomerName" Name="FooComboBox" />
Steps to reproduce:
Thanks in advance.
Wrapping the SubSonic generated class with your own class (which contains one property, which gets/sets the generated class instance) and using that in a collection, works.