Ferdi7110
(Ferdi7110)
December 26, 2023, 5:09pm
1
I need help!i want to rearrange columns , how do i do it without data getting manipulated
help me get solution
Vikas_M
(Vikas M)
December 26, 2023, 5:10pm
2
Hey @Ferdi7110
Kindly refer below link
Hi,
I have a data table and I would like to change the order of the columns. (There is already data in the data table)
So basically I need:
[image]
How do I do that?
Also in addition u can use default view too
1 Like
vrdabberu
(Varunraj Dabberu)
December 26, 2023, 5:13pm
3
Hi @Ferdi7110
=> Read the excel
=> Use Filter Datatable Activity in output column tab add all the columns in the order you want
=> Get the output and Write the datatable back to the same excel
Or
you can checkout this thread too. It will help you.
Use invoke method with SetOrdinal
And pss the datatable and the index in prameters where you want the column
Check this for screenshots of how it looks if stuck.
How to change the ordinal or position of the DataColumn to the specified ordinal or position? Is it possible to reorder Columns? If yes, please share a sample script.
Issue/Query: How to change the ordinal or position of the DataColumn to the specified ordinal or position?
Resolution steps:
The above scenario is achievable with the help of Set Ordinal method.
Sample Excel/ DataTable Data: Consider the below data
[image]
Launch UiPath Studio and create a sample process.
Ensure to have …
Regards
Ferdi7110
(Ferdi7110)
December 26, 2023, 5:19pm
4
thanks i used the link, helpful
vrdabberu
(Varunraj Dabberu)
December 26, 2023, 5:21pm
6
@Ferdi7110
The below link will help you then.
Regards
vrdabberu
(Varunraj Dabberu)
December 26, 2023, 5:30pm
8
Hi @Ferdi7110
If you find the solution please do mark as solution to close the loop.
Happy Automation!!
system
(system)
Closed
December 29, 2023, 5:30pm
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.