Dataset drag n drop declaration

  • Thread starter Thread starter Jeff Brown
  • Start date Start date
J

Jeff Brown

OK i removed all of my datasets to start fromo scratch again with another
method.

Is there a way i can create all my datasets in the MDI Parent form and
reference them from child forms
*******************
for instance i just created dsName1 in the MDi Parent and the dsName.xsd was
created in the solution.

Now i want 2 different child forms to be able to access certain data
contained in the dsname1 dataset.
they would probably work if i could reference the source dataset correctly.

childDsName = dsName1.Copy()
childDsName = formMain.dsName1.Copy()
childDsName = SolutionName.dsName1.Copy()
that should give me the structure and the data ,clone gives only the
structure
*******************
Now if i get that part working.. then to keep them updated i could put this
is the main windows "changeactivechild" (the same place where it updates the
mdilist on the menu) so that if i enter data from one form into the dataset
the other form can already access it
childDsName = dsName1.getchanges()
childDsName = formMain.dsName1.getchanges()
childDsName = SolutionName.dsName1.getchanges()
*******************
then on the childs form close so that it updates the dsName1 in the Parent?
childDsName.Merge(dsName1, True, System.Data.MissingSchemaAction.Add)

*******************

Is any of this close to being right????? If i solve this problem i think i
could be busy for a few days and just read posts , LOL.

If i could bind child form controls to the dataset on the parent i wouldn't
need to make a copy at all


so glad i found this newsgroup, i have given up trying to do this project
about 3 times in the past 3 months but i keep trying and get a little
farther only to realize i need to start over and do it a different way.

Thanks guys,
Jeff Brown
 
Couldn;t get that to work.
I tried me.parentform."not anything i need" no dataset listed. I think i
might have to put hem in a module and thats just another rhing i do not know
how to do.

Thanks though, if you have any other suggestion i will try it too.

Jeff
 
What are they declared as though ? if they are private then you will not see
them from a child
 
Back
Top