How to add data column at position 0 for datatable?

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?

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

Cheers.

1 Like

@quihan , Thank you very much.

1 Like

No worries. Happy Automation :slight_smile:

1 Like