R
Rain County
I am using VS2005 standard edition. I have a database (MSACCESS) with a
Customer table. On the main form (frmMain) of my windows application, I
have used the wizards to create a connection, a tableadapter, and a dataset.
frmMain has a datagridview for selecting a Customer (and then displaying
another gridview full of the customers orders). A button click on frmMain
will bring up a second form, frmCustomer. frmCustomer will be used to
delete or edit an existing customer or to add a new customer.
Now, the question: How can I have frmCustomer access the same dataset
(dsCustomer) as frmMain? How do I make the dataset be shared between forms?
Can I have a seperate class that contains and exposes the dataset? If so,
how do I do it? OR, is there a simple way to have the dataset be an object
of frmMain, but still be available as the datasource of frmCustomer?
Examples or links to examples would be appreciated. I am sure this is
simple, but, apparently, so am I
TIA
Phil
Customer table. On the main form (frmMain) of my windows application, I
have used the wizards to create a connection, a tableadapter, and a dataset.
frmMain has a datagridview for selecting a Customer (and then displaying
another gridview full of the customers orders). A button click on frmMain
will bring up a second form, frmCustomer. frmCustomer will be used to
delete or edit an existing customer or to add a new customer.
Now, the question: How can I have frmCustomer access the same dataset
(dsCustomer) as frmMain? How do I make the dataset be shared between forms?
Can I have a seperate class that contains and exposes the dataset? If so,
how do I do it? OR, is there a simple way to have the dataset be an object
of frmMain, but still be available as the datasource of frmCustomer?
Examples or links to examples would be appreciated. I am sure this is
simple, but, apparently, so am I
TIA
Phil