Have you main form/class create the dataset,
Create a DataView & DataSet on FormA and bind controls on FormA to DataView,
Create FormB and do the same as FormA,
From your main class pass the master DataSet to both forms, e.g. vFormA =
new FormA(MasterDataSet),
You constructor of FormA & FormB would be something like;
public FormA(DataSet pMasterDataSet)
{
InitializeComponent();
dataView1.DataTable = pMasterDataSet.Tables["Customer"];
}
Now both forms, DataViews & bound controls all point to the same DataSet.
- Colin
"Jet Leung" <xi**@tom.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi Colin,
How to have both froms reference a common dataset? What does your mean?
And where the currency manager placed in?
The result showing form or the result modify form? Any sample?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!