Datatable column rearrange

Hi Team,

How to rearrange columns within a data table and print in excel sheet?
like inside DT its like Name, Desc, Address
I want to print in excel like
Desc, Name, Address

@Robotics

Check as below

  1. Add data columns with Column Name
  2. Invoke Method `Set Ordinal

image

  1. pass the parameter position of the Column in Int32

Mark as solution if this helps you

Thanks

2 Likes