Check out example codes for "c# datatable copy selected rows to another table". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com