Convert a row into header in a datatable

Hi @Rajat_16,

You can do this in another way

  • Loop the first row using For Each activity
  • Then Assign dt.Columns(columnIndex).ColumnName = firstRow(columnIndex) this will rename the header
  • After the loop delete the first row
2 Likes