How to append one DataTable to another DataTable

后端 未结 6 1076
臣服心动
臣服心动 2020-12-10 09:59

I would like to append one DataTable to another DataTable. I see the DataTable class has two methods; \"Load(IDataReader)\" and \"Merge(DataTable)\". From the documentation

6条回答
  •  鱼传尺愫
    2020-12-10 10:30

    You could let your DataAdapter do the work. DataAdapter.Fill(DataTable) will append your new rows to any existing rows in DataTable.

提交回复
热议问题