Description
I have a BO that has a child collection that is bound to a GridControl and the data is retrieved without a problem. When I go to the bottom of the grid and add a new item the grid shows it’s in edit mode but as soon as I type a keystroke it bombs with “List item must be marked as a child object”.
I’ve tested my BO and I can add a new record without error, (var nw =BO.MyColl.AddNew(); nw.MyField = “test”; BO.Save()). During testing both the BO.MyColl.IsChild and nw.IsChild return true. So I think this proves my BO is setup correctly.
Anyone know what I'm doing wrong? Thanks
<DataGrid ItemsSource="{Binding Model.MyColl}" AutoGenerateColumns="False" > <DataGrid.Columns> <DataGridTextColumn Binding="{Binding MyField}"/> </DataGrid.Columns> </DataGrid>
Error:
System.Reflection.TargetInvocationException: 'Exception has been thrown by the target of an invocation.'
InvalidOperationException: List item must be marked as a child object
CSLA: v4.6
WPF MVVM: CSLA ViewModelBase