![]() |
|||
|
About Article
Alternative to How to copy one datatable to another
You may use this code for your task. DataTable dtTarget = new DataTable(); dtTarget = dtSource.Clone(); DataRow[] rowsToCopy; rowsToCopy = dtSource.Select("key='" + matchString + "'"); foreach (DataRow temp in rowsToCopy) { dtTarget.ImportRow(temp); }
Related Articles
|
||||||||||||||