The array is obtained by a linq query on a datatable. When I try to add it to another datatable it gives the exception that the row belongs to another table.
need to add the row to the top of the table not at the bottom
DataRow[] recovery_rows = Sub_DataTable.Select("ProductId = " + last_product_id.ToString() + ""); //Sub_DataTable is a datatable
for (int rev_row = 0; rev_row < recovery_rows.Count(); rev_row++)
{
DataRow r_new = recovery_rows[rev_row];
// r_new = recovery_rows[rev_row];
dt_sub.Rows.InsertAt(recovery_rows[rev_row], 0);
}