Konba

Hi
I have MDI application with two child windows.
1. In a first child window I fill strong typed DataSet (MyDataSet) with data from database.
2. In a second child window- I want to display one of the datatable (let's say ORDERS) from MyDatSet in datagridview.
I bound that table in design-time to datagridview, which created me two objects: myDataSet and oRDERSBindingSource.
When I create and show that second-child-window - nothing is displayed on datagridview, although ORDERS table is filled with data.
In a parent window - I tried to do something like this:
my2Child = new Child2Window();
my2Child.myDataSet = (MyDataSet) my1Child.myDataSet1;
my2Child.Show();
Unfortunately - without effect.
What is wrong How should I pass that myDataSet1 object from 1st window to second
Konrad


Re: .NET Framework Data Access and Storage Passing DataSet object between two windows

Konba

Anyone Help...




Re: .NET Framework Data Access and Storage Passing DataSet object between two windows

Konba

For everyone interested: In my2Child constructor I did:
oRDERSBindingSource.DataSource = myDataSet1; //myDataSet1 - passed as a param in a constructor
and it works.