I have a XamDataGrid with a DataSource bounded. This data Source looks like this:
BindingList<Directory> directories =new BindingList<Directory>();
Folder f1 = new Folder() { CreationDate = DateTime.Now, Group = "a", Name = "c"}; // and some more folder objects
Directory directory = new Directory() { Folders = new ObservableCollection<Folder>() { f1, // AND SO ON };
I have'grouped' my directories, so i have + signs to go to the Folder objects
My question is, i need to have on each level a AllowAddNew record. With the bool on true on the FieldLayouts i get only the first level off the grid the oppertunity.Not the
Hello,
Instead of ObservableCollection<T> use only BindingList<T> which support AddNewRecord. It seems that the ObservableCollection does not support this feature.
Hope this helps.
As my example presents: BindingList<Directory> directories =new BindingList<Directory>();
So the BindingList you refering i allready using, and i do have an AddNew option on the first level, but not on the second.
Please see my image.