Hi
I've been searching the forums for a couple days to find the solution to this problem but I have had no luck.
I have a binding source on a windows form which is bound to a collection of type BindingList that holds a set of Portfolio objects. Each Portfolio object contains a collection which holds securities objects. The intention is that when the user selects a portfolio on the form, summary information for the securities are displayed. However I have noticed that when a portfolio object is set as the current object (bindingsource.current) it loses its securities. To make it a little clearer, when the application loads there are three portfolios, the first one is automatically displayed and should show the security information but it does not. While debugging I can see that the count for the securities property for this first portfolio is now zero (after being successfully loaded from the database), the count for the other two portfolios are correct. If I select portfolio2the securities are displayed, and if I then select portfolio 3, the securities are also displayed, but if I go back to 2 there are no securities and the count is now zero, the same occurs for 3. So it seems that after the object has been set as current, it loses the objects in the securities collection.
Could someone please help me resolve this? Thanks.