connectseekers.com

Thursday, 15 May 2014

Merge two datatables in C#.Net and VB.Net | How to merge multiple datatables using C#.Net

5/15/2014 - By Pranav Singh 0

In some cases we needed to merge the two or more datatable data in our program either using c# or using vb.net.

So in this article I am going to show you how you can merge two datatable in a single datatable using c#.net and vb.net.



C#.Net
static void Main(string[] args)
        {           
             DataTable objdatatable1=new DataTable();
             DataTable objdatatable2 = new DataTable();
            //Merg both the datatable
             objdatatable1.Merge(objdatatable2);
        }

VB.Net
Private Shared Sub Main(ByVal args As String())
            Dim objdatatable1 As New DataTable()
            Dim objdatatable2 As New DataTable()
            'Merg both the datatable
            objdatatable1.Merge(objdatatable2)
        End Sub


About the Author

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Get Updates

Subscribe to our e-mail newsletter to receive updates.

Share This Post

0 comments:

Please let me know your view

Free Ebooks


About Us

We are the group of people who are expertise in different Microsoft technology like Asp.Net,MVC,C#.Net,VB.Net,Windows Application,WPF,jQuery,Javascript,HTML. This blog is designed to share the knowledge.

Contact Us

For writing article in this website please send request by your

GMAIL ID: dotnetpools@gmail.com
Email Id : contact@aspdotnet-pools.com

Bugs and Suggestions

As we all know that this website is for sharing knowledge and providing proper solution. So while reading the article is you find any bug or if you have any suggestion please mail us at contact@aspdotnet-pools.com.

Partners


Top jQuery Plugins

Global Classified : Connectseekers.com
© 2014
back to top