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?


#2

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

Cheers.


#3

@quihan , Thank you very much.


#4

No worries. Happy Automation :slight_smile: