How can I access a DataSet on Form1 from Form2?
Thanks
Printable View
How can I access a DataSet on Form1 from Form2?
Thanks
I can think of many ways; CurrencyManager, pass in reference to dataset in the form's constructor, etc..
Are you launching a modal dialog or just displaying another form?
another form
All you have to do is overload the form's constructor to accept a dataset as one of its parameters.
thanks I'll give it a go...
What about inheriting the ds from the other form?
You could wrap up your dataset into a business object and expose to your other classes.
yes, cool, thanks