PC Review


Reply
Thread Tools Rate Thread

One DataSet - two WinForms

 
 
Dan
Guest
Posts: n/a
 
      26th Aug 2003
How can I bind controls on one WinForm to DataSet in another WinForm?
How can I make this DataSet available at design time on second WinForm?

Dan



 
Reply With Quote
 
 
 
 
William Ryan
Guest
Posts: n/a
 
      26th Aug 2003
1) Sit the DataSet in a module in VB or a class that
uses it as a shared property in a C# Class

2) I'm not sure about what you are doing with it at
design time. If you use a DataSet control, I don't think
it will work (but I'm not positive, I've just never done
it or seen it done). HOwever, you can reference it as
mentioned above at design time and you'll be able to get
to it.

Hopefully this helps.

Bill


W.G. Ryan
(E-Mail Removed)
www.knowdotnet.com
>-----Original Message-----
>How can I bind controls on one WinForm to DataSet in

another WinForm?
>How can I make this DataSet available at design time on

second WinForm?
>
>Dan
>
>
>
>.
>

 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      26th Aug 2003
Thank you Bill

I'm working with C#.

1. Please give me an example in C# to use DataSet as shared property in a
class.

2. At design time I want to bind controls from Form B (child) to tables from
DataSet control in Form A (parent). For example, I want to display/modify in
a separate child form all information from a row in a grid from parent form.
There is a way to do that?

Dan



"William Ryan" <(E-Mail Removed)> wrote in message
news:00f801c36b8b$4912c960$(E-Mail Removed)...
> 1) Sit the DataSet in a module in VB or a class that
> uses it as a shared property in a C# Class
>
> 2) I'm not sure about what you are doing with it at
> design time. If you use a DataSet control, I don't think
> it will work (but I'm not positive, I've just never done
> it or seen it done). HOwever, you can reference it as
> mentioned above at design time and you'll be able to get
> to it.
>
> Hopefully this helps.
>




 
Reply With Quote
 
Dan
Guest
Posts: n/a
 
      26th Aug 2003
Thank you Bill

I'm working with C#.

1. Please give me an example in C# to use DataSet as shared property in a
class.

2. At design time I want to bind controls from Form B (child) to tables from
DataSet control in Form A (parent). For example, I want to display/modify in
a separate child form all information from a row in a grid from parent form.
There is a way to do that?

Dan

"William Ryan" <(E-Mail Removed)> wrote in message
news:00f801c36b8b$4912c960$(E-Mail Removed)...
> 1) Sit the DataSet in a module in VB or a class that
> uses it as a shared property in a C# Class
>
> 2) I'm not sure about what you are doing with it at
> design time. If you use a DataSet control, I don't think
> it will work (but I'm not positive, I've just never done
> it or seen it done). HOwever, you can reference it as
> mentioned above at design time and you'll be able to get
> to it.
>
> Hopefully this helps.
>
> Bill



 
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
Winforms User Controls - How do I bind those to a dataset on the host form John Sheppard Microsoft Dot NET 2 15th Apr 2008 07:56 AM
Passing dataset inputs to a winforms app Prashant Kumar via DotNetMonster.com Microsoft Dot NET Framework Forms 1 23rd Nov 2004 12:02 PM
WinForms app passes DataSet to remoted type: possible bug Greg Microsoft Dot NET Framework Forms 1 21st Jan 2004 08:46 PM
More forms in WinForms and DataSet Matej Kavčič Microsoft ADO .NET 1 9th Jan 2004 10:43 AM
Databinding Textbox to Dataset (winforms) Andrew Microsoft ADO .NET 1 12th Nov 2003 06:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:32 PM.