In C# how can I access a DataSet on Form1 from Form2?
Thanks
__________________
Printable View
In C# how can I access a DataSet on Form1 from Form2?
Thanks
__________________
You have to pass it to back and forth. Modify the constructor for form 2 to take a dataset object. When you instantiate form 2, pass the dataset to it. After you are finish with it, you can pass it back to form 1.
DevGrp,
I dont even think it is necessary to pass it back because when passing reference types, they are passed by reference regardless.
Yes thats correct. I forgot about that :DQuote:
Originally posted by Lethal
DevGrp,
I dont even think it is necessary to pass it back because when passing reference types, they are passed by reference regardless.