I'm making a short application to study wpf and linq to sql. I put a combobox, a text box and a button. When I click on the button, the text I've inserted on the text box has put on the dbo.table. The combobox should show the records of the dbo.table, but I see the new records only when I close and reopen the application.
/// Logica di interazione per Window1.xaml
public partial class Window1 : Window
private DataClasses1DataContext connection = null;
I didn't get into your code deeply but I think the concept shuold be changed.
When you bound the ComboBox to some object you should consider to bound it to object that implement INotifyCollectionChanged (ObservableCollection object for example). Use such object guarantee that when you add or delete an item to the collection, the ComboBox will be refreshed automatic.
If you still have problems (or you want to see an example) upload your project and I will try to help you