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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top