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
Hello Martin,
It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through you post and yes, the reason is InotifyCollectionChanged, because the XamDataGrid demand on it. I made a research and I got into this forum thread:
http://social.msdn.microsoft.com/forums/en-US/linqprojectgeneral/thread/827c404c-6e18-4910-9068-d87a6ec099ae/
where a similar issue like yours is discussed.
Feel free to write me if you have further questions.