Data Connections Wizard

  • Thread starter Thread starter Jason L James
  • Start date Start date
J

Jason L James

Hi All,

I used the data connections wizard to automatically
create the connections, data adapters and then data
set to contain the date from my database. The typed
dataset that is created is placed in a class on its own,
however the resulting objects are created with Friend
scope in the main form.

I would like to use the data stored in these objects in
other forms I will require in my application, to hold lists
of options in combo boxes, etc.

Does anyone have any suggestions as to how I should
declare these variables, or indeed, redfine them so that
I can call them without getting a NullReference
excpetion when trying to access the dataset on another
form?

Many thanks,

Jason.
 
Jason,

By the wizard created strongly typed dataset helps you in standard
situations when you are using it to display information. So very good
usable, however I do not know a MSDN samples where it is used for updating a
database or/and more of that stuff.

So make your choise use the wizard and keep you on the situations where for
it is created, make your own strongly typed datasets by hand or use untyped
datasets.

Just my opinion.

Cor
 
Hi Cor,

thanks for the info. I am using a control that works best
then the DS is generated with the Wizard so I would
like to stick with it until I have figured out how to use
the 3rd party control from code.

Thanks,

Jason.
 
Back
Top