How to add data column at position 0 for datatable?

datatable
activities
studio
#1

In C#.NET, we can add data column at position 0 for datatable as code below.

DataColumn Col = datatable.Columns.Add(“Column Name”, System.Type.GetType(“System.Boolean”));
Col.SetOrdinal(0);// to put the column in position 0;

In UiPath, Is it possible?

0 Likes

#2

Hi @akkapolk, you could do the same using Invoke Code activity.

Cheers.

1 Like

#3

@quihan , Thank you very much.

1 Like

#4

No worries. Happy Automation :slight_smile:

1 Like

closed #5
0 Likes