Merge Two Data Tables in C#

If you have two data tables with the same data columns, you can merge them quite easily.

Merge Data Tables

dataTableEuropeanCities and dataTableAsianCities are two datatables with same schema. They can be merged with one line of code.   DataTable dataTableEuropeanCities = new DataTable();   DataTable dataTableAsianCities = new DataTable();   dataTableEuropeanCities.Merge(dataTableAsianCities);
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Related Posts