Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 04-21-2008   #1 (permalink)
John Sheppard


 
 

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

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



My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
simulate continuous forms & subforms in a windows forms application .NET General
Passing ArrayList as reference to function PowerShell
Passing hash table by reference PowerShell
passing variable by reference PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46