How to create new header for Datatable


do you know how to change first row of datatable to header?

When I’m reading source file, first column contains only nonsense. After some selects, I’m able to create Datatable which contains what I need and here I need to change somehow first row to header to be able to use commands like OutputDT.Select.CopyToDataTable().DefaultView.ToTable(False, ArraySelectedColumns).




From where did you read all the information that you are putting in a data Table? If you read from an Excel file this input, you have the activity Read Range for that, where you have to check the property Add Headers.