[ACCEPTED]-WPF datagrid allow user to add rows?-mvvm

Accepted answer
Score: 42

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.

Score: 24

Make sure your objects in the ObeservableCollection 1 have a default parameterless constructor.

Score: 5

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

More Related questions