Results 1 to 4 of 4

Thread: Accessing DataSet from A While in B.

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question Accessing DataSet from A While in B.

    In C# how can I access a DataSet on Form1 from Form2?

    Thanks


    __________________

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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.
    Dont gain the world and lose your soul

  3. #3
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    DevGrp,
    I dont even think it is necessary to pass it back because when passing reference types, they are passed by reference regardless.

  4. #4
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    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.
    Yes thats correct. I forgot about that
    Dont gain the world and lose your soul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width