Update an entire row with another row

Currently I am doing an automation and I need to update a whole row of a datatable (ex: TempDt) with another row from another datatable(ex: RegistDt). Currently the data I have is the column with which I am going to replace and the index of the row to update. How can I do this?

Currently I have only found information to update data for one cell at a time but not the entire row.

Any opinion could help.

1 Like

Have a look on following:
rowFromTempDt.ItemArray = rowFromRegistDt.ItemArray
Or
TempDt.Rows(index).ItemArray = RegistDt.Rows(index).ItemArray

Both Datatables should have the same Column structure

3 Likes

That helped me! Thanks a lot

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.