title: Copying the value of one data Table to another data Table in Mvc
body: <p>Actually, i have two data tables. Here is the code for reference. Actually <strong>Relationship</strong> holds the sub string values(Code not mentioned here). So i am splitting the data's to store in two table's based on the condition.</p>
  
  <pre><code> if (child.Relationship.Contains("P"))
  {
     var newRow = dataTable.NewRow();
     newRow["EmployeeNo"] = child.EmployeeNo;
     newRow["FirstName"] = child.FirstName;
     newRow["MiddleName"] = child.MiddleName;
     newRow["LastName"] = child.LastName;
     newRow["FullName"] = child.FullName;
     newRow["MemberIc"] = child.MemberIc;
     dataTable.Rows.Add(newRow);
     }
  else
     {
       var newRow1 = dataTable1.NewRow();
       newRow1["EmployeeNo"] = child.EmployeeNo;
       newRow1["FirstName"] = child.FirstName;
       newRow1["MiddleName"] = child.MiddleName;
       newRow1["LastName"] = child.LastName;
       newRow1["FullName"] = child.FullName;     
       newRow1["MemberIC"] = child.MemberIC;         
       dataTable1.Rows.Add(newRow1);
       }
  </code></pre>
  
  <p>So, whenever the MemberIc in the second data table is empty. I need to copy the MemberIc from first data table(only if EmployeeNo Matches) based on the <strong>EmployeeNo</strong>. 
  How can i copy the value ? Any help appreciated. Thanks in advance !!!</p>