DataGrid AddNew #1717
Unanswered
CrossSlide
asked this question in
Questions
DataGrid AddNew
#1717
Replies: 2 comments 3 replies
-
It has been some time since I looked at it, but I think the SimpleNtier sample does this. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks Rocky I'll check if out... I did find a way to do it. I created a method in MyChild that simply creates a child object then sets e.NewItem with it in AddingNewItem().
If anyone has a better way just let me know... Thanks |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Using a Windows DataGrid I need to add a new row when the user types in the empty row at the bottom of the datagrid. I get "InvalidOperationException: List item must be marked as a child object" .
I've asked this question before here. Rocky said I should be able to handle a datagrid event via mycollection.AddNew(). I never got back to this issue until now.
I've tried handling AddingNewItem() and InitializingNewItem() events but I keep getting the child error. I've even tried passing an child object directly but it still fails.
Does anyone have an example of how to do this?
Thanks
WPF
CSLA: v4.6
Beta Was this translation helpful? Give feedback.
All reactions