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

RE: Connect a TableAdapter to an already existing DataTable by ZaphodB

ZaphodB
Wed Oct 26 12:21:04 CDT 2005

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.

--
Senior Developer
Transform Pharmaceuticals


"O" wrote:

> 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
>
>
>