How to reorder the column

file.xlsx (11.3 KB)
for reference check this excel file

Hi @anjani_priya

=> Read Range Workbook
Output → dt

=> Use the below syntax in Assign:

newdt = dt.DefaultView.ToTable(False,"name","marks of sub2","marks of sub 1","place")

newdt is of DataType System.Data.DataTable`

=> Write Range Workbook newdt to excel.

Regards

1 Like

Assign Activity
dtReordered =

dtOrig.DefaultView.ToTable(False, {"name","marks of sub2","marks of sub 1","place"})

UPD1 - out order fixed

1 Like

Hi @anjani_priya

Try this

Output:

Regards,

@anjani_priya

Check the below flow:

=> Read Range Workbook
image
Output → dt

=> Use the below syntax in Assign:

newdt = dt.DefaultView.ToTable(False,"name","marks of sub2","marks of sub 1","place")

newdt is of DataType System.Data.DataTable

=> Write Range Workbook newdt to excel.
image

FLOW:

XAML:
Sequence84.xaml (10.4 KB)

Regards

1 Like

A formal reminder on the method signature:

So we are using an array

2 Likes

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