[ACCEPTED]-WPF datagrid allow user to add rows?-mvvm
Accepted answer
Found the problem. My constructor in the 3 object that's part of my ObservableCollection 2 wasn't declared public.
*Hits head*
Thanks 1 for your time.
Make sure your objects in the ObeservableCollection 1 have a default parameterless constructor.
The new blank row will depend if the collection 5 you are binding implements IEditableCollectionView. see 4 here. That being said i have found that sometimes 3 it works well and other times unexplainably 2 it seems not to, but the IEditableCollectionView 1 is a start
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.