This Row already belongs to another table error when trying to add rows?

后端 未结 7 1534
闹比i
闹比i 2020-11-28 02:58

I have a DataTable which has some rows and I am using the select to filter the rows to get a collection of DataRows which I then loop through using foreach and add it to ano

7条回答
  •  误落风尘
    2020-11-28 03:37

    foreach (DataRow dr in dtSpecificOrders.rows)
    {
       dtSpecificOrders.Rows.Add(dr.ItemArray); 
    }
    

提交回复
热议问题