Connect a TableAdapter to an already existing DataTable

  • Thread starter Thread starter O
  • Start date Start date
O

O

hejdig.

I have a DataTable from before and now want to connect it to a database.

I havn't found a way, through VS.Net2005rc1, to create a TableAdapter and
connect it to an already existing DataTable.

Is there a way (besides hacking the XML)?

TIA

/OF
 
I've been dinking around with TableAdapters for a while now. They're just
generated by code. You might want to just design a table in the XSD designer
that is just like your existing table, hand craft the data table and its
adapters just the way you want it, and then rip the DataTableAdapter class
code out of mumbleTable.Designer.cs Each DataTableAdapter is a
self-contained class.

With some hacking, ISJW.
 
Back
Top