General information
Category:
The Mere Mortals .NET Framework
Title:
Saving from a Child Buisness Object
Well in brief, my question is what am I missing, or what should I check.
I have a datagrid on a form that shows information related to a current record. The related information is stored in a separate table, so we use a separate BO. The grid needs to be editable, so I register the BO as a child BO of the BO that holds the main record. As I understand, when the primary BO is saved so should the child. But that’s not happening.
Here is what I’ve tried.
Manually assigning the datasource of the grid to a table from the business object, then updating the BO biased off of that table. Doesn’t work, I get "Table does not have a primary key" errors.
Manually calling the updatefromdataset method. Doesn’t seem to do anything.
And I’ve tried many other code tweaks at the business object level, but those two are the centerpieces of everything I’ve tried.
Some additional information, the grid is the MM inherited Infragistics WinGrid.
In the business object, I have to change the updatecommandname (Assuming that’s what needs to be changed) So that the BO Gets it's information from one View in SQL but saves changes to another.
Thanks in advance for any help I can get!
Cheers!
Dave
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only