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
3627
Row entered just disappears
posted

I'm adding a new screen to an app that's been working for a year or so. I thought I duplicated the same pattern in the new screen, but obviously I'm missing some detail.

The grid's bound to a BindingList<T>.

When I enter fields into the "add new" row and hit ENTER, the row disappears. It's not added to the collection. It seems that this is past the point that 99% of the problems here deal with: I have the "add new" row. I have a parameterless constructor. Each time I start to enter data into the new row, that constructor is called, so it's creating the new object.

Note that the grid does initially display the contents of the BL<> . It does not, however, add the new object to it.

Have you seen this before?

Thank you.

Parents
  • 3627
    posted

    FYI: I have a mechanism to duplicate objects in the list. After doing so, the newly added lists are immediately visible to the grid.

Reply Children
No Data