Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
multiple fieldlayouts combine with AllowAddNew
posted

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

Parents
  • 69686
    posted

     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. 

Reply Children