You have many topics in this forums about inserting row with LinqToSQL. I fallowed all your instructions, I'm using VB and her's the code:
Private db As New LinqSQLDataContext
Private Sub Page1_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
Dim b As New Binding
Dim c As New DataGridCollectionView(db.Table1.GetNewBindingList)
b.Source = c
Me.DataGridControl1.SetBinding(DataGridControl.ItemsSourceProperty, b)
End Sub
I can insert a row and the PK_Id show automaticly 0. But it stop there, I can not edit the others fields of the inserted row. All the others rows works fine, I can edit and SubmitChange, sort and filter, but not insert a row. Can you help me !