dcsimg
 

Submitted by: Srinath M S(srinath_ms@yahoo.com)

Friday Dec 15th 2017 by Srinath M S

Language: .NET, Level: Intermediate: - Learn how to easily merge two data tables with the same data columns 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);
Home
Mobile Site | Full Site
Copyright 2018 © QuinStreet Inc. All Rights Reserved