C# Code
Temp1 is the source table from which the data to be copied.
Temp2 is the Destination table to which the data will b imported.
Temp1 is the source table from which the data to be copied.
Temp2 is the Destination table to which the data will b imported.
DataSet ds=New DataSet();
Ds.Tables.Add(Temp2);
DataTable Temp2=new DataTable();
var row = Temp1.Rows[RowIndex];
if(Temp1.Rows.Count>0)
{
ds.Tables["Temp2"].ImportRow(row);
}
else
{
// Do Something...............
}