Passing dataset by reference between forms, what is the best approach?

Passing dataset by reference between forms, what is the best approach?

am 22.04.2008 04:16:42 von Gabe Garza

Hello there,

I am wanting to pass my datasets by reference to other forms. As soon as I
do that I have to reset any binding sources by setting their datasource
property to the original datasource.

I also find that I cannot then bind directly to my dataset without a binding
source, so I have to duplicated all my binding sources on my second form.

Is this normal or am I doing something wrong? How do you guys normally pass
large amounts of data between forms?

This is my function I run to pass the reference in (I didn't overload new
for some reason which I dont recall now)
Public Sub assignReference(ByRef theDs As dataset)

Me.ds = theDs

Me.serviceOrderBindingSource.DataSource = Me.ds

End Sub


Thank you kindly for anyones thoughts
John Sheppard