Re-ordering of columns in data table

i_declined
studio

#1

Hi,

Is it possible to enable re-ordering of columns in UiPath Datatables? I often find that I want to re-use ‘Build Data Table’, but end up rebuilding the tables as I want slightly different ordering of my columns.


#2

UiPath uses standard System.Data datatables. Reordering can be achieved bu using SetOrdinal in combination with InvokeMethod (as the method returns void).


#3

Thank a lot! I will try this solution :slight_smile: