Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataTable.Merge Method

Merge the specified DataTable with the current DataTable.

Name Description
DataTable.Merge (DataTable) Merge the specified DataTable with the current DataTable.

Supported by the .NET Compact Framework.

DataTable.Merge (DataTable, Boolean) Merge the specified DataTable with the current DataTable, indicating whether to preserve changes in the current DataTable.

Supported by the .NET Compact Framework.

DataTable.Merge (DataTable, Boolean, MissingSchemaAction) Merge the specified DataTable with the current DataTable, indicating whether to preserve changes and how to handle missing schema in the current DataTable.

Supported by the .NET Compact Framework.

The Merge method is used to merge two DataTable objects that have largely similar schemas. A merge is typically used on a client application to incorporate the latest changes from a data source into an existing DataTable. This allows the client application to have a refreshed DataTable with the latest data from the data source.

The merge operation takes into account only the original table, and the table to be merged. Child tables are not affected or included. If a table has one or more child tables, defined as part of a relationship, each child table must be merged individually.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft