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
55
Creating new parent/child records with UltraWinGrid
posted

 I'm using the NetAdvantage 8.1 grid in C#  3.5.

The problem I am having is when I am using an ultragrid as a subform.  I have my parent record on the main form, and have an ultragrid on that form with its datasource set to a foreign key of that parent record.  I'm looking to enter the parent record in the main form, and then have child the record in the grid connected by the primary key of that parent record.

 When I have an existing parent record, I have no issues.  However, when I generate a new parent record, the child record does not save for that parent.

 When I replace the ultragrid with the standard .NET grid, I get the functionality I need.  I can add a new parent record, add a child record associated with that record, and the TableAdapterManager.UpdateAll takes care of everything just fine.  However, with the ultragrid I am having no luck at all. (I should also point out that not using the TableAdapterManager, but instead manually using the update methods for each adapter doesn't work for me either when using the ultragrid.)

 I feel as if I must be missing something simple.  Is there a difference in the way you would enter new parent and child records and apply them to the underlying database between the ultragrid and the .NET grid?