DataTable .Clone() and .Copy() - S7an Insights

Breaking

S7an Insights

生活 × 技術 × 分享 讓複雜的問題,有條理地解決。

2017年9月13日 星期三

DataTable .Clone() and .Copy()

dt是要保留得資料來源
dtd是目的端,完成Clone()後,還要執行ImportRow的動作。

DataTable dtd = dt.Clone();
dtd.ImportRow(drr);


Ref:
https://www.codeproject.com/Articles/1037138/DataTable-Copy-Vs-DataTable-Clone-in-Csharp

沒有留言:

張貼留言

問題沒有大小或好壞