i have the following invoke code which i’m trying to change dt_DataTable column header name from old to new as follows. i do not think there’s any error in my code because i ran it perfectly in the same Project in another smaller separate xmal sequence…how is it that when i put the code in my main file it is giving errors? is this a bug? :
out_DT = in_DT.Copy
For Each dc As DataColumn In out_DT.Columns
If dc.ColumnName=oldName Then
dc.ColumnName=newName
Exit For
End If