Add Raw DataRow Collection?

L

localhost

I have a remote DataTable and I want to add 5 DataRows to it. My
current code does a "remoteTable.Rows.Add( new object[] { .... } );".
That results in 5 remote calls, which is bad.

I already know the schema of the remote DataTable. Is it possible to
create a DataRow collection, populate all 5 rows, and then send than
entire collection to the DataTable?

Thanks.
 
M

Miha Markic [MVP C#]

Hi,

You might create a remote class that does it for you or use DataSet.Merge if
the table is part of DataSet.
 

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

Top