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


Check as below

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


  1. pass the parameter position of the Column in Int32

Mark as solution if this helps you


1 Like