Global (static) DataSet and VisualStudio.net 2003

  • Thread starter Thread starter Oliver Moss
  • Start date Start date
O

Oliver Moss

Hello,

I have an MDI Parent with a lot of childs. Each child uses the same
DataSet (Schema) but with an new instance on every form.

The child forms contain different grids, combo boxes, textboxes which
are bounded to the DataSet.

My question is: How can I use the VisualStudio.NET 2003 Designer to set
data binding if I use a static dataset instead of one dataset instance
on each form?
And what could be the "best" design for an .net MDI application with a
lot of child forms if I want use the VisualStudio Designer?

Thank you,

Oliver Moss
 
If your problem is only to use the VS designer you could
assign in the load event the Global dataset to the dataset in your form.
So at design time you use the dataset in each form but at runtime you use
the global one.
 
Hallo Luigi,

thank you very much. At least it is a possible way. I thought, that I
could inhire a form with a static DataSet on it. But this ends with a
total confusion of my VisualStudio.net 2003 generated code in the
inhired form. I found that this is a known bug in VS.NET 2003 if I use
DataSets with contraints...

Thank you,

Oliver
 
Back
Top