Change column location

Hello everyone, how can I change the location of several columns of my datatable? that is, I have column B I want to copy all its information and paste it in a new file but in column A

Hi @Juan_Esteban_Valencia

yourDataTable = youDataTable.DefaultView.ToTable(False, {"Col7", "Col4", "Col1", "Col3"...})

Organize your columns as you wish.

Thank you! I ask you, could you add new columns with this code?
Apart from organizing them I would have to add other columns that are not created in the file

You can use Add Data Column activity for that, before running the code.

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