Insert a Column into a specific position in DataTable

datatable

#1

How can I insert a Column into a specific position in a DataTable ?


#2

@certified


#3

Hi @sishiramishra,

You can achieve it using AddDataColumn activity and SetOrdinal method.
Here is an example:
InsertColumn.xaml (7.4 KB)

Please go through with these links :slight_smile:


https://www.uipath.com/activities-guide/add-data-column

https://msdn.microsoft.com/es-es/library/system.data.datacolumn.setordinal(v=vs.110).aspx

Regards,
Susana