Home All Groups Group Topic Archive Search About

Passing TableAdapters

Author
31 Mar 2006 3:37 AM
Paul Craig
Hi,
I have a parent form which has aprox 100 child forms. Each of these forms
has a datagridview and accesses different tables in a database. In 2003 I
had a method in my parent class that got passed from the child the dataset,
the datadapter and the table name which allowed me to create save and delete
buttons on my parent (amongst other things). In 2005 however I need
reference to the Table Adapter in my parent form although I am unable to
pass it to my parent as each tableadapter is of a different object type (eg.
customerDataAdaptor or ordersDataAdaptor). Any suggestions or ideas? Any
help is greatly appreciated
Cheers
Paul

AddThis Social Bookmark Button