foreach(DataRow dr in datatable1.Rows) { datatable.ImportDataRow(dr); }
datatable.ImportRow(dr);
private void CopyDataTable(DataTable table){ // Create an object variable for the copy. DataTable copyDataTable; copyDataTable = table.Copy(); // Insert code to work with the copy. }
{
datatable.ImportDataRow(dr);
}
private void CopyDataTable(DataTable table){
// Create an object variable for the copy.
DataTable copyDataTable;
copyDataTable = table.Copy(); // Insert code to work with the copy.
}