title: Copy rows between two datatable VB.net
body: <p>I have two datatable how i could copy targeted rows index to another datatable in the same index, Please check below code.</p>
  
  <pre><code>            Dim datatable1 As DataTable = GetEmployeeSummary()
          Dim datatable2 As DataTable = GetEmployees()
          For i As Integer = 0 To datatable1.Rows.Count - 1 'Datatable1.rows.count = datatable2.rows.count
              Select Case i
                  Case 1, 5, 6, 19, 24
                      datatable2.Rows(i) = datatable2.Rows(i) 'how i could copy targeted rows index to another datatable in the same index
              End Select
          Next
  </code></pre>