10 forms one dataset

  • Thread starter Thread starter ck
  • Start date Start date
C

ck

Hello Everyone,

I've got a real general question. I want to create an
application with 10 forms and use one dataset to populate
various places on different forms. If I fill the dataset
on form1 and then the user goes to form2 using
form2.ShowDialog, if the dataset is also listed on form2,
is it still filled or does it need to be re-filled on
form2? TIA
 
Without seeing your code, I am going to assume that each of your forms
instantiates its own instance of that dataset, which means it would not be
filled. You could check that. If so, it wouldn't be that difficult to
pass it from form to form as a parameter. That assumes Windows forms. If
web forms, you could consider other options like setting a session variable.
 
Back
Top