Sharing A DataSet

D

Daryll SHatz

Is there a way to share a datase across multiple forms in a project? I have
created a DataSet, using the Wizards, and bound several controls on my main
form. All works well. Now I would like to use the DataSet data with
controls on several Dialog forms in the same project. Is the a way to
make/create a "global" DataSet for all objects in the same project?
 
H

Herfried K. Wagner [MVP]

Hello,

Daryll SHatz said:
Is there a way to share a datase across multiple forms in
a project? I have created a DataSet, using the Wizards, and
bound several controls on my main form. All works well.
Now I would like to use the DataSet data with controls
on several Dialog forms in the same project. Is the a way to
make/create a "global" DataSet for all objects in the same project?

DataSets created by the wizard are declared as 'Friend' by default. You can
access them from other classes in your application. I think you will more
likely get an answer in this ng:

news://news.microsoft.com/microsoft.public.dotnet.framework.windowsforms.databinding
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top