One DataSet - two WinForms

D

Dan

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
 
W

William Ryan

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 address removed)
www.knowdotnet.com
 
D

Dan

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
 
D

Dan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top