Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# datatable copy selected rows to another table

foreach (DataRow dr in dataTable1.Rows) {
    if (/* some condition */)
        dataTable2.Rows.Add(dr.ItemArray);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #datatable #copy #selected #rows #table
ADD COMMENT
Topic
Name
9+8 =