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
245
hierarchical data : add an item to a sub collection
posted

Hello,

 

I display a list of categories of books and for each, I display as a sub collection, all the book in it.

 

I would like to be abble to add a book to a category but there is no "add" row for the childs fieldLayout...

How can I perform this ?

Parents
  • 69686
    posted

    Hello,

    There are couple of things that you need to ensure in order to have an AddNewRow in a fieldlayout

    1. Set the AllowAddNewRecord property of the FieldLayout's Settings

    2. The underlying collection should implement IBindingList interface

    3. The underlying class (if you bind to one) should have a parameterless constructor

Reply Children