Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Access Method
Message
From
31/10/2007 13:46:46
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB 8.0
OS:
Vista
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01265411
Message ID:
01265450
Views:
10
Patrick,

Do NOT put the DataAccess in the Form. You need to organize your solution so that you have separate projects for DataAccess (and separate Business projects too). Then, have the DataAccess class get your data from the database and pass back a DataSet with the DataTable in it. Use that to bind to your controls. Since you say the layout is the same for all your tables, simply create a DataSet based on an .xsd of your table's layout.

If you need more direction than this, just ask a few questions and we'll see if we can get you pointed in the right direction.

~~Bonnie



>I would like to create a Form where the users selects a table at runtime and then that table is bound to controls on the

form. The tables will all share the same table layout.
>
>What is the best DataAdapterSourceTableSetTypedContextBinder thingy to use?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform