Copy rows from one Datatable to another DataTable? - Stack Overflow

PHOTO EMBED

Wed Aug 30 2023 15:48:43 GMT+0000 (Coordinated Universal Time)

Saved by @javicinhio #cs

foreach (DataRow dr in dataTable1.Rows) {
    if (/* some condition */)
        dataTable2.Rows.Add(dr.ItemArray);
}
content_copyCOPY

https://stackoverflow.com/questions/4020270/copy-rows-from-one-datatable-to-another-datatable