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
1830
Addnewrow doesn't show when child collection is empty
posted

My child fieldlayout doesn't show the add row when the child collection is empty.  Did I miss a setting?  Thanks.

Parents
  • 28407
    Verified Answer
    posted

    Hi,

     Use a BindingList and make sure it is instantiated and not null.

     I am attaching a sample.

     The first person has its Cars collection set to null - no AddNewRow

     The 2nd person has its cars collection instantiated and has not cars - AddNewRow Appears.

     I am attaching a sample application that illustrates these points.

     Sincerely,

     Matt
     Developer Support Engineer

     

     

    WpfApplication9.zip
Reply Children
No Data