How to concatenate two columns in datatable without looping and keep concatinated data in new column?

Hi,

Actually, the DataColumn’s ColumnName or Caption are not changed but the write range activity seems to rely on DataColumn’s ToString method to ouput its header and this will take first the DataColumn’s Expression property if defined.

If you use the Output Data Table you’ll see different headers.

Use Log Message with the following, you’ll see:

DT.Columns(“Formula”).ToString
DT.Columns(“Formula”).Caption
DT.Columns(“Formula”).ColumnName

I don’t know if you can override the DataColumn’s ToString method in VB as a workaround. You might have to handle your headers by your own means.

I’m asking for a change in the post below: you should “vote” if this matter to you.