J
Joe
Hi,
I'm trying to share one dataset across multiple forms in an MDI application.
I pass the same, shared, dataset into each child form through its
constructor. I am using databinding to bind my controls in each form to
this dataset. If I have one MDI child window open, modifying the DataSet
works fine - but if I have more than one window open, where controls in each
window are bound to the same table of the dataset, exceptions get thrown all
over the place - usually a Null Reference Exception from some WinForm
Control ("an exception occurred in Windows.Forms.dll" ...). Even
non-dataset actions, like opening an Open File Dialog cause thesee
exceptions to be thrown. I've also tried binding to DataViews local to each
child window, but this doesn't help. Any help would be greatly appreciated.
Dave Hagedorn
I'm trying to share one dataset across multiple forms in an MDI application.
I pass the same, shared, dataset into each child form through its
constructor. I am using databinding to bind my controls in each form to
this dataset. If I have one MDI child window open, modifying the DataSet
works fine - but if I have more than one window open, where controls in each
window are bound to the same table of the dataset, exceptions get thrown all
over the place - usually a Null Reference Exception from some WinForm
Control ("an exception occurred in Windows.Forms.dll" ...). Even
non-dataset actions, like opening an Open File Dialog cause thesee
exceptions to be thrown. I've also tried binding to DataViews local to each
child window, but this doesn't help. Any help would be greatly appreciated.
Dave Hagedorn