I have a class that includes some public properties that are objects of subclasses as well as lists of subclasses. My form application uses textboxes and such to provide interface to the first level properties, and then some data grid views to access the
object lists. I have about five binding sources, one for the main class and four for the subclasses. Those four bindingsources use the main binding source as their data source and the data member to select their source of information. When I load my data,
everything is displayed as I expected. However, if I try to edit the data grid views to add or modify the lists, and then attempt to commit those changes, the changes are lost. I can move to another record and back, and the data is the same as before my changes.
Changes to the first level properties are saved. What am I missing here? Do I need some special properties of the subclasses to allow changes to be made to them. I made sure the data grid views are set to allow edits. Is there some where I can get more information
on this?
↧