PC Review


Reply
Thread Tools Rate Thread

Connect a TableAdapter to an already existing DataTable

 
 
O
Guest
Posts: n/a
 
      26th Oct 2005
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SmltIEthdHo=?=
Guest
Posts: n/a
 
      26th Oct 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
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues w/ using a DataTable with a TableAdapter's Update method Craig Buchanan Microsoft ADO .NET 1 18th Jul 2008 01:31 PM
Issues w/ using a DataTable with a TableAdapter's Update method Craig Buchanan Microsoft VB .NET 1 18th Jul 2008 01:31 PM
Difference about TableAdapter and DataTable Willian Lopes Microsoft ADO .NET 1 12th May 2008 04:19 PM
DataTable and TableAdapter Tony Johansson Microsoft C# .NET 0 14th Apr 2008 08:59 PM
moving backward to write in TableAdapter / DataTable spam@interlusion.de Microsoft VB .NET 5 12th Jan 2007 05:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 AM.