Add Raw DataRow Collection?

  • Thread starter Thread starter localhost
  • Start date Start date
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.
 
Hi,

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