Sometimes you need to copy one or more rows from a source datatable to another datatable. The importrow method can do this for you. It copies a DataRow into a DataTable, preserving any property settings, as well as original and current values. An important condition is that the destination datatable must be the same as the source datatable:

// copy the table definition from source to destination table
DataTable destinationTable = sourceTable.Clone();

In the destination table, you can now import rows:

foreach (DataRow dr in sourceTable)
{
   destinationTable.ImportRow(dr);
}