Thursday 3 May 2018

How to append one DataTable to another DataTable

How to append one DataTable to another DataTable

Description:
In this example we explain that how to append data to DataTable in Asp.Net using C#. or how to append data to Dataset using C#. or how to append or merge data to DataTable using C#. or how to append dataset or data table to a session variable using C#. or how to append one DataTable to another DataTable using C#.

So here we demonstrate that how to merge DataTable in C#. below is the code to merge two data table and assign it to session variable using C#.
Code:

((DataSet)Session["xyz"]).Merge(ds1) ;



0 comments:

Post a Comment