Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Must be marked as Child  #543

Closed
Closed
@CrossSlide

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions