Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
444
xamDataGrid binding with Linq.DataContext Table, no new grid rows when inserts into table
posted

Hi

I have a Linq.DataContext generated with SqlMetal and a XamDataGrid bound to a Table.

If I insert a new row into a DataContext.Table (and commit changes) the Grid does not update.

I have a side-by-side test with a simple ObservableCollection and it works fine.

The ObservableCollection supports INotifyCollectionChanged but the Linq.Table<> does not which I guess is the reason why. 

Is this the reason why, does the Grid demand INotifyCollectionChanged to get new rows ?

Any workarounds (with Linq.DataContext) ?

thanks

Martin