PC Review


Reply
Thread Tools Rate Thread

10 forms one dataset

 
 
ck
Guest
Posts: n/a
 
      26th Aug 2003
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


 
Reply With Quote
 
 
 
 
John Viele
Guest
Posts: n/a
 
      26th Aug 2003
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.

"ck" <(E-Mail Removed)> wrote in message
news:0c4801c36c17$76a665d0$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing dataset between two web forms in c# vvyshak@gmail.com Microsoft ADO .NET 2 3rd Mar 2006 12:48 AM
Passing dataset between two web forms... vvyshak@gmail.com Microsoft Dot NET Framework Forms 2 2nd Mar 2006 12:29 PM
Help with Forms and DataSet John Cosmas Microsoft Dot NET Framework Forms 2 12th Sep 2005 09:37 PM
How do I refrence the same dataset in all forms? Benny Raymond Microsoft C# .NET 5 26th Oct 2004 05:31 PM
One Dataset for all forms ck Microsoft ADO .NET 1 5th Sep 2003 12:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 AM.