Re-ordering of columns in data table

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.

3 Likes

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

2 Likes

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

2 Likes

Here is a detailed article on that :slight_smile:
# How To Reorder Columns In DataTable – In UiPath

Regards,

1 Like