title: Copy row from datatable to another where there are common column headers
body: <p>I have two datatables, I am trying to copy row from one table to another, I have tried <a href="https://stackoverflow.com/a/4020284/10597010">this</a>. the thing is that my tables are not exactly the same, both tables have common headers, but to the second table have more columns, therefore I need "smart" copy, i.e to copy the row according to the column header name.</p>
  
  <p>d1:</p>
  
  <pre><code>+--------+--------+--------+
  |  ID    |  aaa   |  bbb   |
  +--------+--------+--------+
  |  23    | value1 | value2 |    &lt;----copy this row
  </code></pre>
  
  <p>d2:</p>
  
  <pre><code>+--------+--------+--------+--------+
  |  ID    |  ccc   |  bbb   |  aaa   |
  +--------+--------+--------+--------+
  |  23    |        | value2 | value1 |       &lt;----I need this result
  </code></pre>
  
  <p>but this code: </p>
  
  <pre><code>string rowID=23;
  DataRow[] result = dt1.Select($"ID = {rowID}");
  dt2.Rows.Add(result[0].ItemArray);
  </code></pre>
  
  <p>gives:</p>
  
  <p>d2:</p>
  
  <pre><code>+--------+--------+--------+--------+
  |  ID    |  ccc   |  bbb   |  aaa   |
  +--------+--------+--------+--------+
  |  23    | value1 | value2 |        |    &lt;---- :( NOT what I need
  </code></pre>